VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions
DtEvalAnd Class Reference

class DtEvalAnd:

Instances of DtEvalAnd are used to perform the evaluation for a DtCeAnd conditional expression (a logical AND operation).

Inheritance diagram for DtEvalAnd:
Inheritance graph
[legend]

Public Member Functions

 DtEvalAnd ()
 
virtual ~DtEvalAnd () override
 
 DtEvalAnd (const DtEvalAnd &orig)
 
DtEvalAnd & operator= (const DtEvalAnd &orig)
 
virtual DtEvaluator * clone () override
 
virtual bool evaluate (DtSimCondExpr *condExpr, DtLocalObject *owner, const DtSimulationServices *simManager, const DtPlan *=0) 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
 

Constructor & Destructor Documentation

DtEvalAnd::DtEvalAnd ( )

constructor

virtual DtEvalAnd::~DtEvalAnd ( )
overridevirtual

destructor

DtEvalAnd::DtEvalAnd ( const DtEvalAnd &  orig)

copy constructor

Member Function Documentation

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

assignment operator

virtual DtEvaluator* DtEvalAnd::clone ( )
overridevirtual

clone operator

Implements DtEvaluator.

virtual bool DtEvalAnd::evaluate ( DtSimCondExpr *  condExpr,
DtLocalObject *  owner,
const DtSimulationServices *  simManager,
const DtPlan *  = 0 
) const
overridevirtual

Evaluate this conditional expression for the entity with the given echelonId, in the context of the given simManager, and return the current result. The condExpr passed in must be of type DtCeAnd. 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: "AND(False, Entity-Destroyed ...)" always returns False, and the Entity-Destroyed test will never be done.

Implements DtEvaluator.

virtual const DtUUID& DtEvalAnd::simulationObject ( const DtSimCondExpr *  condExpr) const
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 DtEvaluator* DtEvalAnd::creator ( )
static

Returns a newly created DtEvalAnd.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)