|
SeExpr
|
#include <Context.h>
Public Member Functions | |
| bool | lookupParameter (const std::string ¶meterName, std::string &value) const |
| Lookup a Context parameter by name. More... | |
| void | setParameter (const std::string ¶meterName, const std::string &value) |
| Set a parameter. NOTE: this must be done when no threads are accessing lookupParameter for safety. More... | |
| Context * | createChildContext () const |
| Create a context that is a child of this context. More... | |
| void | setParent (const Context *context) |
| const Context * | getParent () const |
| bool | hasContext (const Context *context) const |
Static Public Member Functions | |
| static Context & | global () |
| The global default context of the seexpr. More... | |
Private Types | |
| typedef std::map< std::string, std::string > | ParameterMap |
Private Member Functions | |
| Context (const Context &) | |
| Context & | operator= (const Context &) |
| Context (const Context *parent) | |
Private Attributes | |
| const Context * | _parent |
| The parent scope. More... | |
| ParameterMap | _parameters |
| Attribute/value pairs. More... | |
|
private |
|
private |
Private constructor and un-implemented default/copy/assignment (it is required that we derive from the global context via createChildContext)
Referenced by createChildContext().
|
private |
Definition at line 21 of file Context.cpp.
| Context * Context::createChildContext | ( | ) | const |
Create a context that is a child of this context.
Definition at line 27 of file Context.cpp.
References Context().
|
inline |
|
static |
The global default context of the seexpr.
Definition at line 29 of file Context.cpp.
References context.
|
inline |
Definition at line 46 of file Context.h.
References _parent, and hasContext().
Referenced by hasContext().
|
inline |
Lookup a Context parameter by name.
Definition at line 27 of file Context.h.
References _parameters, _parent, it, and lookupParameter().
Referenced by SeExpr2::ContextUtils::IsThreading(), and lookupParameter().
| void Context::setParameter | ( | const std::string & | parameterName, |
| const std::string & | value | ||
| ) |
Set a parameter. NOTE: this must be done when no threads are accessing lookupParameter for safety.
Definition at line 23 of file Context.cpp.
References _parameters, and value().
Referenced by SeExpr2::ContextUtils::DisableThreading().
|
inline |
|
private |
Attribute/value pairs.
Definition at line 68 of file Context.h.
Referenced by lookupParameter(), and setParameter().
|
private |
The parent scope.
Definition at line 63 of file Context.h.
Referenced by getParent(), hasContext(), lookupParameter(), and setParent().
1.8.5