VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions
DtEvalOr Class Reference

class DtEvalOr: More...

Inheritance diagram for DtEvalOr:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtEvalOr ()
 constructor
virtual ~DtEvalOr ()
 destructor
 DtEvalOr (const DtEvalOr &orig)
 copy constructor
DtEvalOroperator= (const DtEvalOr &orig)
 assignment operator
virtual DtEvaluatorclone ()
 clone operator
virtual bool evaluate (DtSimCondExpr *condExpr, const DtString &objectName, DtSimManager *simManager) const
 

Static Public Member Functions

static DtEvaluatorcreator ()
 Returns a newly created DtEvalOr.

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

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 DtString objectName,
DtSimManager simManager 
) 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.

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 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)