![]() |
VR-Forces 5.0.2 Developer's Guide
|
Contains the DtCompositePredicate class declaration.
Instances of DtCompositePredicate maintain and evaluate a list of sub-predicates. An object will not pass an eval unless it passes the evals of all the predicates. Instances of DtCompositePredicate are not considered equal unless their predicate lists match.

Protected Member Functions | |
| virtual bool | eval (const DtSimObject *vrfObject) const |
| virtual bool | predicateEqual (const DtVrfObjectPredicate &orig) const |
| virtual bool | canEvalTrue (const DtSimObject *vrfObject) const override |
| virtual bool | canEvalFalse (const DtSimObject *vrfObject) const override |
| virtual void | typeSpecificStringRep (std::ostream &str, int indentLevel) const |
Protected Attributes | |
| DtList | myPredicates |
Protected Attributes inherited from DtVrfObjectPredicate | |
| bool | myNegated |
Additional Inherited Members | |
Static Public Member Functions inherited from DtVrfObjectPredicate | |
| static const DtVrfObjectPredicate & | nullPredicate () |
| DtCompositePredicate::DtCompositePredicate | ( | bool | negate = false | ) |
default constructor
|
virtual |
destructor
| DtCompositePredicate::DtCompositePredicate | ( | const DtCompositePredicate & | orig | ) |
copy constructor
| DtCompositePredicate& DtCompositePredicate::operator= | ( | const DtCompositePredicate & | orig | ) |
assignment operator
|
virtual |
clone function
Implements DtVrfObjectPredicate.
Reimplemented in DtFormationableSubordinatePredicate, DtTaskableSubordinatePredicate, and DtAggregateSpatialModelPredicate.
|
virtual |
adds a sub-predicate
|
virtual |
removes a force type from the set of types to be checked
|
virtual |
returns true if the predicate is in the predicate list
|
protectedvirtual |
The actual test this predicate performs.
Implements DtVrfObjectPredicate.
|
protectedvirtual |
Used by equality operator used to compare predicates.
Reimplemented from DtVrfObjectPredicate.
|
overrideprotectedvirtual |
Reimplemented from DtVrfObjectPredicate.
|
overrideprotectedvirtual |
Reimplemented from DtVrfObjectPredicate.
|
protectedvirtual |
Override in specific subclasses to print the predicate description to the stream.
Reimplemented from DtVrfObjectPredicate.
|
protected |