![]() |
VR-Forces Developer's Guide
|
class DtEvalOr:
Instances of DtEvalOr are used to perform the evaluation for a DtCeOr conditional expression (a logical OR operation).

Public Member Functions | |
| DtEvalOr () | |
| virtual | ~DtEvalOr () override |
| DtEvalOr (const DtEvalOr &orig) | |
| DtEvalOr & | operator= (const DtEvalOr &orig) |
| virtual DtEvaluator * | clone () override |
| virtual bool | evaluate (DtSimCondExpr *condExpr, DtLocalObject *owner, const DtSimulationServices *simManager, const DtPlan *) const override |
| virtual const DtUUID & | simulationObject (const DtSimCondExpr *condExpr) const override |
Public Member Functions inherited from DtEvaluator | |
| DtEvaluator () | |
| virtual | ~DtEvaluator () |
| DtEvaluator (const DtEvaluator &orig) | |
| DtEvaluator & | operator= (const DtEvaluator &orig) |
Static Public Member Functions | |
| static DtEvaluator * | creator () |
Static Public Member Functions inherited from DtEvaluator | |
| static void | setFactory (DtEvaluatorFactory *factory) |
| static DtEvaluatorFactory * | factory () |
| static void | addEvaluatorCreatorFcn (const int intType, DtEvaluatorCreatorFcn fcn) |
Additional Inherited Members | |
Static Protected Attributes inherited from DtEvaluator | |
| static DtEvaluatorFactory * | theFactory |
| DtEvalOr::DtEvalOr | ( | ) |
constructor
|
overridevirtual |
destructor
| DtEvalOr::DtEvalOr | ( | const DtEvalOr & | orig | ) |
copy constructor
|
overridevirtual |
clone operator
Implements DtEvaluator.
|
overridevirtual |
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.
|
overridevirtual |
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.