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

class DtCeOr: More...

Inheritance diagram for DtCeOr:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtCeOr ()
 default constructor
 DtCeOr (DtReaderWriterRegistry *parentRegistry)
 real constructor
 DtCeOr (const DtCeOr &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 copy constructor
virtual ~DtCeOr ()
 destructor
DtCeOroperator= (const DtCeOr &orig)
 assignment operator
virtual DtSimCondExprclone (DtReaderWriterRegistry *parentRegistry=NULL)
 clone operator
virtual int type () const
 Returns the type of conditional expression defined in condExprTypes.h.
virtual void setLeftCondExpr (DtSimCondExpr *leftExpr)
 Set the left conditional sub-expression.
virtual DtSimCondExprleftCondExpr ()
virtual const DtSimCondExprleftCondExpr () const
virtual void setRightCondExpr (DtSimCondExpr *rightExpr)
 Set the right conditional sub-expression.
virtual DtSimCondExprrightCondExpr ()
virtual const DtSimCondExprrightCondExpr () const
virtual int subExprCount () const
 Get the number of sub-expressions nested inside this expression.
virtual DtSimCondExprsubExpr (int index)
 Get a pointer to any particular sub-expression nested inside this expression.
virtual DtString stringRep (int subExprIndex=DtSR_EXPR) const
 Get a readable string representation of this level of this expression.
virtual DtlObjPtr getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings)
 This special version of getData needs to create the necessary sub-expression elements, tell the elements to getSelf, and then add the element to myRegistry.
virtual int netRepSize () const
 returns the size of the full network representation padded to an 8-byte boundary.
virtual bool setFromNet (const char *contentBuffer, unsigned contentSize)
 Fills in the expression from the network buffer.
virtual bool setToNet ()
 Fills in the network buffer (created by base class conditional expression) with the conditional expression contents.

Static Public Member Functions

static DtSimCondExprcreator ()

Protected Attributes

DtSimCondExprmyLeftCondExpr
DtSimCondExprmyRightCondExpr

Detailed Description

class DtCeOr:

Instances of DtCeOr represent a logical OR of two Conditional Expressions.


Constructor & Destructor Documentation

default constructor

DtCeOr::DtCeOr ( DtReaderWriterRegistry parentRegistry)

real constructor

DtCeOr::DtCeOr ( const DtCeOr orig,
DtReaderWriterRegistry parentRegistry = NULL 
)

copy constructor

virtual DtCeOr::~DtCeOr ( ) [virtual]

destructor


Member Function Documentation

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

assignment operator

virtual DtSimCondExpr* DtCeOr::clone ( DtReaderWriterRegistry parentRegistry = NULL) [virtual]

clone operator

Implements DtSimCondExpr.

virtual int DtCeOr::type ( ) const [virtual]

Returns the type of conditional expression defined in condExprTypes.h.

DtCondExprOrType

Implements DtSimCondExpr.

virtual void DtCeOr::setLeftCondExpr ( DtSimCondExpr leftExpr) [virtual]

Set the left conditional sub-expression.

Note: the DtCeOr object will take over ownership of the leftExpr object.

virtual DtSimCondExpr* DtCeOr::leftCondExpr ( ) [virtual]
virtual const DtSimCondExpr* DtCeOr::leftCondExpr ( ) const [virtual]
virtual void DtCeOr::setRightCondExpr ( DtSimCondExpr rightExpr) [virtual]

Set the right conditional sub-expression.

Note: the DtCeOr object will take over ownership of the rightExpr object.

virtual DtSimCondExpr* DtCeOr::rightCondExpr ( ) [virtual]
virtual const DtSimCondExpr* DtCeOr::rightCondExpr ( ) const [virtual]
virtual int DtCeOr::subExprCount ( ) const [virtual]

Get the number of sub-expressions nested inside this expression.

This is two in the case of AND and OR, and one in the case of NOT.

Reimplemented from DtSimCondExpr.

virtual DtSimCondExpr* DtCeOr::subExpr ( int  index) [virtual]

Get a pointer to any particular sub-expression nested inside this expression.

Sub-expressions are indexed as C arrays are (i.e. starting with sub-expression #0). An index of zero selects the left (the only expression for NOT) sub-expression. An index of one selects the right sub-expression of an AND or an OR.

Reimplemented from DtSimCondExpr.

virtual DtString DtCeOr::stringRep ( int  subExprIndex = DtSR_EXPR) const [virtual]

Get a readable string representation of this level of this expression.

The subExprIndex argument indicates which stringRep to get as a prefix for a given sub-expression. For an OR expression, the first (0) sub-expression's prefix is the "OR(" part, the second sub-expression's prefix is the ", " part, and if the subExprIndex value of DtSimCondExpr::DtSR_EXPR is given, the final ")" is returned.

See the documentation for DtSimCondExpr::stringRep for more information.

Implements DtSimCondExpr.

virtual DtlObjPtr DtCeOr::getData ( DtlObjPtr  args,
const DtFilename &  searchPath,
const DtVariableBindingsList variableBindings 
) [virtual]

This special version of getData needs to create the necessary sub-expression elements, tell the elements to getSelf, and then add the element to myRegistry.

virtual int DtCeOr::netRepSize ( ) const [virtual]

returns the size of the full network representation padded to an 8-byte boundary.

Reimplemented from DtSimCondExpr.

virtual bool DtCeOr::setFromNet ( const char *  contentBuffer,
unsigned  contentSize 
) [virtual]

Fills in the expression from the network buffer.

Reimplemented from DtSimCondExpr.

virtual bool DtCeOr::setToNet ( ) [virtual]

Fills in the network buffer (created by base class conditional expression) with the conditional expression contents.

Reimplemented from DtSimCondExpr.

static DtSimCondExpr* DtCeOr::creator ( ) [static]

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)