![]() |
VR-Forces 4.0.4 Class Documentation
|
Contains the DtCompositePredicate class declaration. More...

Public Member Functions | |
| DtCompositePredicate (bool negate=false) | |
| default constructor | |
| virtual | ~DtCompositePredicate () |
| destructor | |
| DtCompositePredicate (const DtCompositePredicate &orig) | |
| copy constructor | |
| DtCompositePredicate & | operator= (const DtCompositePredicate &orig) |
| assignment operator | |
| virtual DtVrfObjectPredicate * | clone () const |
| clone function | |
| virtual void | addPredicate (const DtVrfObjectPredicate &predicate) |
| adds a sub-predicate | |
| virtual void | removePredicate (const DtVrfObjectPredicate &predicate) |
| removes a force type from the set of types to be checked | |
| virtual bool | hasPredicate (const DtVrfObjectPredicate &predicate) const |
| returns true if the predicate is in the predicate list | |
Protected Member Functions | |
| virtual bool | eval (const DtVrfObject *object) |
| The actual test this predicate performs. | |
| virtual bool | predicateEqual (const DtVrfObjectPredicate &orig) const |
| Used by equality operator used to compare predicates. | |
Protected Attributes | |
| DtList | myPredicates |
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.
| DtCompositePredicate::DtCompositePredicate | ( | bool | negate = false | ) |
default constructor
| virtual DtCompositePredicate::~DtCompositePredicate | ( | ) | [virtual] |
destructor
| DtCompositePredicate::DtCompositePredicate | ( | const DtCompositePredicate & | orig | ) |
copy constructor
| DtCompositePredicate& DtCompositePredicate::operator= | ( | const DtCompositePredicate & | orig | ) |
assignment operator
| virtual DtVrfObjectPredicate* DtCompositePredicate::clone | ( | ) | const [virtual] |
| virtual void DtCompositePredicate::addPredicate | ( | const DtVrfObjectPredicate & | predicate | ) | [virtual] |
adds a sub-predicate
| virtual void DtCompositePredicate::removePredicate | ( | const DtVrfObjectPredicate & | predicate | ) | [virtual] |
removes a force type from the set of types to be checked
| virtual bool DtCompositePredicate::hasPredicate | ( | const DtVrfObjectPredicate & | predicate | ) | const [virtual] |
returns true if the predicate is in the predicate list
| virtual bool DtCompositePredicate::eval | ( | const DtVrfObject * | object | ) | [protected, virtual] |
The actual test this predicate performs.
Implements DtVrfObjectPredicate.
| virtual bool DtCompositePredicate::predicateEqual | ( | const DtVrfObjectPredicate & | orig | ) | const [protected, virtual] |
Used by equality operator used to compare predicates.
Reimplemented from DtVrfObjectPredicate.
DtList DtCompositePredicate::myPredicates [protected] |