A common base class for RuleSet and AI. Both RuleSets and AIs have their own internal IRules, ILogic, and mixins. The class RuleBase provides a common foundation so that no code has to be repeated in the higher-level classes. RuleBase holds the string-based hash maps of IRules and ILogic, as well as the string-based hash map of mixin strings.
RuleBase.h
Provides an iterator to the start of the IRule hash. | |
Provides an iterator to the end of the IRule hash. | |
Provides an iterator to the start of the ILogic hash. | |
Provides an iterator to the end of the ILogic hash. | |
Provides an iterator to the start of the mixin hash. | |
Provides an iterator to the end of the mixin hash. | |
The RuleBase destructor. | |
Adds an IRule to the rule hash. | |
Adds a piece of ILogic to the logic hash. | |
Adds a mixin to the mixin hash. | |
The string-based hash of IRules. | |
The string-based hash of ILogic. | |
The string-based hash of mixin strings. |
Provides an iterator to the start of the IRule hash. | |
Provides an iterator to the end of the IRule hash. | |
Provides an iterator to the start of the ILogic hash. | |
Provides an iterator to the end of the ILogic hash. | |
Provides an iterator to the start of the mixin hash. | |
Provides an iterator to the end of the mixin hash. |
|
Adds a mixin to the mixin hash. The mixin name is inserted at the given key into the hash map of mixins for the given rule name.
| rule | The name of the IRule or ILogic the mixin name applies to. |
| key | The hash key at which to store the mixin rule name. |
| mixin | The name of the mixin IRule or ILogic being applied. |
| IRuleEngine::RuleHash mRuleHash |
The string-based hash of IRules.
| IRuleEngine::LogicHash mLogicHash |
The string-based hash of ILogic.
| IRuleEngine::RuleHash::const_iterator rules_begin() const |
| IRuleEngine::RuleHash::const_iterator rules_end() const |
| IRuleEngine::LogicHash::const_iterator logic_begin() const |
| IRuleEngine::LogicHash::const_iterator logic_end() const |
| IRuleEngine::MixinHash::const_iterator mixins_begin() const |
| IRuleEngine::MixinHash::const_iterator mixins_end() const |
| virtual ~RuleBase()=0 |
|
|
|
| IRuleEngine::RuleHash mRuleHash |
| IRuleEngine::LogicHash mLogicHash |
| IRuleEngine::MixinHash mMixinHash |