Concrete Python  git-339c971
Public Member Functions
ScopedContext Class Reference

#include <concrete/context.hpp>

+ Inheritance diagram for ScopedContext:
+ Collaboration diagram for ScopedContext:

List of all members.

Public Member Functions

 ScopedContext (Context &context) throw ()
 ~ScopedContext () throw ()

Detailed Description

Context activator.


Constructor & Destructor Documentation

ScopedContext ( Context context) throw () [explicit]

Set the active Context instance of the current thread.

Parameters:
contextis owned by the caller and must live over the lifetime of the created ScopedContext instance
~ScopedContext ( ) throw ()

Clear the active Context instance of the current thread.