Evaluates when CYICondition objects have been set, and notifies users.
Emits a CYIConditionEvaluator::Success signal when all of the CYICondition objects added to this CYIConditionEvaluator have been set, using CYICondition::Set().
Usage:
#include <utility/YiCondition.h>
Public Member Functions | |
| CYIConditionEvaluator () | |
| virtual | ~CYIConditionEvaluator () |
| void | Reset () |
| void | ClearConditions () |
| void | AddCondition (CYICondition *pCondition) |
Public Member Functions inherited from CYIScriptableObject | |
| CYIScriptableObject () | |
| CYIScriptableObject (const CYIScriptableObject &other) | |
| CYIScriptableObject & | operator= (const CYIScriptableObject &other) |
| virtual | ~CYIScriptableObject () |
| CYIBindingImplementation * | GetBindingImplementation () const |
| void | SetBindingImplementation (CYIBindingImplementation *pBindingImplementation) |
| virtual const CYIRuntimeTypeInfo * | GetRuntimeTypeInfoForScriptObject () const |
Public Attributes | |
| CYISignal | Success |
Friends | |
| class | CYICondition |
| CYIConditionEvaluator::CYIConditionEvaluator | ( | ) |
|
virtual |
| void CYIConditionEvaluator::AddCondition | ( | CYICondition * | pCondition | ) |
Adds a new condition to be evaluated. The CYIConditionEvaluator does not take ownership of pCondition.
| void CYIConditionEvaluator::ClearConditions | ( | ) |
Remove all CYICondition objects added to this CYIConditionEvaluator.
| void CYIConditionEvaluator::Reset | ( | ) |
Unset each CYICondition added to this CYIConditionEvaluator. Reset() is automatically called after the CYIConditionEvaluator::Success signal is fired.
|
friend |
| CYISignal CYIConditionEvaluator::Success |
Emitted when all conditions are true. Conditions are automatically evaluated when CYICondition::Set is called.