VR-Forces 4.10 Class Documentation
 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
DtEvalOr Class Reference

class DtEvalOr: More...

Inheritance diagram for DtEvalOr:
Inheritance graph
[legend]

Public Member Functions

 DtEvalOr ()
 constructor More...
 
virtual ~DtEvalOr ()
 destructor More...
 
 DtEvalOr (const DtEvalOr &orig)
 copy constructor More...
 
DtEvalOroperator= (const DtEvalOr &orig)
 assignment operator More...
 
virtual DtEvaluatorclone ()
 clone operator More...
 
virtual bool evaluate (DtSimCondExpr *condExpr, const DtUUID &object, DtSimManager *simManager, const DtPlan *) const
 
virtual const DtUUIDsimulationObject (const DtSimCondExpr *condExpr) const
 If there is a simulation object that satisfied the evaluation of this condition then it is returned here. More...
 
- Public Member Functions inherited from DtEvaluator
 DtEvaluator ()
 constructor - condExpr is the conditional expression to be evaluated. More...
 
virtual ~DtEvaluator ()
 destructor More...
 
 DtEvaluator (const DtEvaluator &orig)
 copy constructor More...
 
DtEvaluatoroperator= (const DtEvaluator &orig)
 assignment operator More...
 

Static Public Member Functions

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

Additional Inherited Members

- Static Protected Attributes inherited from DtEvaluator
static DtEvaluatorFactorytheFactory
 

Detailed Description

class DtEvalOr:

Instances of DtEvalOr are used to perform the evaluation for a DtCeOr conditional expression (a logical OR operation).

Constructor & Destructor Documentation

DtEvalOr::DtEvalOr ( )

constructor

virtual DtEvalOr::~DtEvalOr ( )
virtual

destructor

DtEvalOr::DtEvalOr ( const DtEvalOr orig)

copy constructor

Member Function Documentation

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

assignment operator

virtual DtEvaluator* DtEvalOr::clone ( )
virtual

clone operator

Implements DtEvaluator.

virtual bool DtEvalOr::evaluate ( DtSimCondExpr condExpr,
const DtUUID object,
DtSimManager simManager,
const DtPlan  
) const
virtual

The condExpr passed in must be of type DtCeOr. 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: "OR(True, Entity-Destroyed ...)" always returns True, and the Entity-Destroyed test will never be done.

Implements DtEvaluator.

virtual const DtUUID& DtEvalOr::simulationObject ( const DtSimCondExpr condExpr) const
virtual

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* DtEvalOr::creator ( )
static

Returns a newly created DtEvalOr.


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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)