![]() |
VR-Forces 4.7 Class Documentation
|

Public Member Functions | |
| DtEvalOr () | |
| constructor | |
| virtual | ~DtEvalOr () |
| destructor | |
| DtEvalOr (const DtEvalOr &orig) | |
| copy constructor | |
| DtEvalOr & | operator= (const DtEvalOr &orig) |
| assignment operator | |
| virtual DtEvaluator * | clone () |
| clone operator | |
| virtual bool | evaluate (DtSimCondExpr *condExpr, const DtUUID &object, DtSimManager *simManager, const DtPlan *) const |
| | |
| virtual const DtUUID & | simulationObject (const DtSimCondExpr *condExpr) const |
| If there is a simulation object that satisfied the evaluation of this condition then it is returned here. | |
Public Member Functions inherited from DtEvaluator | |
| DtEvaluator () | |
| constructor - condExpr is the conditional expression to be evaluated. | |
| virtual | ~DtEvaluator () |
| destructor | |
| DtEvaluator (const DtEvaluator &orig) | |
| copy constructor | |
| DtEvaluator & | operator= (const DtEvaluator &orig) |
| assignment operator | |
Static Public Member Functions | |
| static DtEvaluator * | creator () |
| Returns a newly created DtEvalOr. | |
Static Public Member Functions inherited from DtEvaluator | |
| static void | setFactory (DtEvaluatorFactory *factory) |
| Set/get the DtEvaluator class factory. | |
| static DtEvaluatorFactory * | factory () |
| static void | addEvaluatorCreatorFcn (const int intType, DtEvaluatorCreatorFcn fcn) |
| Adds a evaluator creator member function to the evaluator factory. | |
Additional Inherited Members | |
Static Protected Attributes inherited from DtEvaluator | |
| static DtEvaluatorFactory * | theFactory |
class DtEvalOr:
Instances of DtEvalOr are used to perform the evaluation for a DtCeOr conditional expression (a logical OR operation).
| DtEvalOr::DtEvalOr | ( | ) |
constructor
|
virtual |
destructor
| DtEvalOr::DtEvalOr | ( | const DtEvalOr & | orig | ) |
copy constructor
|
virtual |
clone operator
Implements DtEvaluator.
|
virtual |
The condExpr passed in must be of type DtCeOr. Calls evaluate() on each sub-expression and combines them as appropriate for each particular logical operator. As with C logical operators, if the left sub-expression's result would override the right sub-expression's result, then the right sub-expression's evaluate() function is not called. For example: "OR(True, Entity-Destroyed ...)" always returns True, and the Entity-Destroyed test will never be done.
Implements DtEvaluator.
|
virtual |
If there is a simulation object that satisfied the evaluation of this condition then it is returned here.
Default returns DtUUID::nullUUID()
Reimplemented from DtEvaluator.
|
static |
Returns a newly created DtEvalOr.