#include <namespace.h>
Public Types | |
typedef map< const string, string > | Attributes |
Maps attributes to values. | |
typedef map< const string, Attributes > | NameAttributesMap |
Maps names to attributes. | |
Public Member Functions | |
NameSpace () | |
Constructor. | |
NameSpace (NameSpace *isuperNameSpace) | |
Constructor. | |
void | ruleRunTimeStep () |
Incresases the ruleRunTime by one. | |
int | getRuleRunTime () const |
Returns the ruleRunTime. | |
void | setRuleRunTime (int iruleRunTime) |
Sets the ruleRunTime. | |
bool | isAttributeSet (const string &name, const string &attribute, const bool global) const |
Checks if given attribute is set. | |
bool | isAttributeEqual (const string &name, const string &attribute, const string &value, const bool global) const |
Checks if givan attribute is equal to a given value. | |
string | getAttributeValue (const string &name, const string &attribute, const bool global) const |
Return the value of the attribute. | |
void | setAttribute (const string &name, const string &attribute, const bool global) |
Sets the attribute. | |
void | setAttributeValue (const string &name, const string &attribute, const string &value, const bool global) |
Sets the value of the attribute. | |
void | processArguments (const Node *arguments) |
Processes arguments -- called by NamedContextRule -- now empty no assumptions made on arguments. | |
void | importLocals (const string &name, const NameSpace &nameSpace) |
Imports attributes for an empty name from nameSpace as an attributes for a given name. | |
Private Attributes | |
NameSpace * | superNameSpace |
A super name space. | |
NameAttributesMap | info |
A map of names and attributes. | |
int | ruleRunTime |
Stores the rule run time. |
Definition at line 11 of file namespace.h.
|
Maps attributes to values.
Definition at line 14 of file namespace.h. |
|
Maps names to attributes.
Definition at line 16 of file namespace.h. |
|
Constructor.
Definition at line 4 of file namespace.cpp. |
|
Constructor.
Definition at line 5 of file namespace.cpp. |
|
Return the value of the attribute.
Definition at line 47 of file namespace.cpp. References info, and superNameSpace. Referenced by AttributeValue::evaluate(), and isAttributeEqual(). |
|
Returns the ruleRunTime.
Definition at line 11 of file namespace.cpp. References ruleRunTime, and superNameSpace. Referenced by NamedContextRule::runRules(). |
|
Imports attributes for an empty name from nameSpace as an attributes for a given name.
Definition at line 80 of file namespace.cpp. References info. Referenced by RuleSystem::execute(), and NamedContextRule::execute(). |
|
Checks if givan attribute is equal to a given value.
Definition at line 43 of file namespace.cpp. References getAttributeValue(). Referenced by LocalAttributeIsequalTester::test(), and AttributeIsequalTester::test(). |
|
Checks if given attribute is set.
Definition at line 31 of file namespace.cpp. References info, and superNameSpace. Referenced by LocalAttributeIssetTester::test(), and AttributeIssetTester::test(). |
|
Processes arguments -- called by NamedContextRule -- now empty no assumptions made on arguments.
Definition at line 76 of file namespace.cpp. Referenced by NamedContextRule::execute(). |
|
Incresases the ruleRunTime by one.
Definition at line 7 of file namespace.cpp. References ruleRunTime. |
|
Sets the attribute.
Definition at line 72 of file namespace.cpp. References ATTRIBUTETRUE, and setAttributeValue(). |
|
Sets the value of the attribute.
Definition at line 63 of file namespace.cpp. References info, and superNameSpace. Referenced by ActionSet::execute(), and setAttribute(). |
|
Sets the ruleRunTime.
Definition at line 18 of file namespace.cpp. References ruleRunTime. Referenced by RuleSystem::stepTime(). |
|
A map of names and attributes.
Definition at line 22 of file namespace.h. Referenced by getAttributeValue(), importLocals(), isAttributeSet(), and setAttributeValue(). |
|
Stores the rule run time.
Definition at line 24 of file namespace.h. Referenced by getRuleRunTime(), ruleRunTimeStep(), and setRuleRunTime(). |
|
A super name space.
Definition at line 20 of file namespace.h. Referenced by getAttributeValue(), getRuleRunTime(), isAttributeSet(), and setAttributeValue(). |