SeExpr
|
#include <SeContext.h>
Public Member Functions | |
bool | lookupParameter (const std::string ¶meterName, std::string &value) const |
Lookup a SeContext 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... | |
SeContext * | createChildContext () const |
Create a context that is a child of this context. More... | |
void | setParent (const SeContext *context) |
const SeContext * | getParent () const |
bool | hasContext (const SeContext *context) const |
Static Public Member Functions | |
static SeContext & | global () |
The global default context of the seexpr. More... | |
Private Types | |
typedef std::map< std::string, std::string > | ParameterMap |
Private Member Functions | |
SeContext (const SeContext &) | |
SeContext & | operator= (const SeContext &) |
SeContext (const SeContext *parent) | |
Private Attributes | |
const SeContext * | _parent |
The parent scope. More... | |
ParameterMap | _parameters |
Attribute/value pairs. More... | |
Definition at line 22 of file SeContext.h.
|
private |
Definition at line 59 of file SeContext.h.
|
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 19 of file SeContext.cpp.
SeContext * SeContext::createChildContext | ( | ) | const |
Create a context that is a child of this context.
Definition at line 27 of file SeContext.cpp.
References SeContext().
|
inline |
Definition at line 38 of file SeContext.h.
References _parent.
|
static |
The global default context of the seexpr.
Definition at line 31 of file SeContext.cpp.
References context.
|
inline |
Definition at line 40 of file SeContext.h.
References _parent, and hasContext().
Referenced by hasContext().
|
inline |
Lookup a SeContext parameter by name.
Definition at line 25 of file SeContext.h.
References _parameters, _parent, it, and lookupParameter().
Referenced by lookupParameter().
void SeContext::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 SeContext.cpp.
References _parameters, and value().
|
inline |
Definition at line 37 of file SeContext.h.
|
private |
Attribute/value pairs.
Definition at line 61 of file SeContext.h.
Referenced by lookupParameter(), and setParameter().
|
private |
The parent scope.
Definition at line 56 of file SeContext.h.
Referenced by getParent(), hasContext(), lookupParameter(), and setParent().