VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
DtCompositePredicate Class Reference

Contains the DtCompositePredicate class declaration. More...

Inheritance diagram for DtCompositePredicate:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtCompositePredicate (bool negate=false)
 default constructor
virtual ~DtCompositePredicate ()
 destructor
 DtCompositePredicate (const DtCompositePredicate &orig)
 copy constructor
DtCompositePredicateoperator= (const DtCompositePredicate &orig)
 assignment operator
virtual DtVrfObjectPredicateclone () 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

Detailed Description

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.


Constructor & Destructor Documentation

default constructor

destructor

copy constructor


Member Function Documentation

DtCompositePredicate& DtCompositePredicate::operator= ( const DtCompositePredicate orig)

assignment operator

virtual DtVrfObjectPredicate* DtCompositePredicate::clone ( ) const [virtual]

clone function

Implements DtVrfObjectPredicate.

Reimplemented in DtTaskableSubordinatePredicate.

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.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)