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