VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions
DtEvalAnd Class Reference

class DtEvalAnd: More...

Inheritance diagram for DtEvalAnd:
Inheritance graph
[legend]

Public Member Functions

 DtEvalAnd ()
 constructor
virtual ~DtEvalAnd ()
 destructor
 DtEvalAnd (const DtEvalAnd &orig)
 copy constructor
DtEvalAndoperator= (const DtEvalAnd &orig)
 assignment operator
virtual DtEvaluatorclone ()
 clone operator
virtual bool evaluate (DtSimCondExpr *condExpr, const DtString &objectName, DtSimManager *simManager) const
 Evaluate this conditional expression for the entity with the given echelonId, in the context of the given simManager, and return the current result.
- Public Member Functions inherited from DtEvaluator
 DtEvaluator ()
 constructor - condExpr is the conditional expression to be evaluated.
virtual ~DtEvaluator ()
 destructor
 DtEvaluator (const DtEvaluator &orig)
 copy constructor
DtEvaluatoroperator= (const DtEvaluator &orig)
 assignment operator

Static Public Member Functions

static DtEvaluatorcreator ()
 Returns a newly created DtEvalAnd.
- Static Public Member Functions inherited from DtEvaluator
static void setFactory (DtEvaluatorFactory *factory)
 Set/get the DtEvaluator class factory.
static DtEvaluatorFactoryfactory ()
static void addEvaluatorCreatorFcn (const int intType, DtEvaluatorCreatorFcn fcn)
 Adds a evaluator creator member function to the evaluator factory.

Additional Inherited Members

- Static Protected Attributes inherited from DtEvaluator
static DtEvaluatorFactorytheFactory

Detailed Description

class DtEvalAnd:

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

Constructor & Destructor Documentation

DtEvalAnd::DtEvalAnd ( )

constructor

virtual DtEvalAnd::~DtEvalAnd ( )
virtual

destructor

DtEvalAnd::DtEvalAnd ( const DtEvalAnd orig)

copy constructor

Member Function Documentation

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

assignment operator

virtual DtEvaluator* DtEvalAnd::clone ( )
virtual

clone operator

Implements DtEvaluator.

virtual bool DtEvalAnd::evaluate ( DtSimCondExpr condExpr,
const DtString objectName,
DtSimManager simManager 
) const
virtual

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.

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 Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)