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

class DtCeNot: More...

Inheritance diagram for DtCeNot:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtCeNot ()
 default constructor
 DtCeNot (DtReaderWriterRegistry *parentRegistry)
 real constructor
 DtCeNot (const DtCeNot &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 copy constructor
virtual ~DtCeNot ()
 destructor
DtCeNotoperator= (const DtCeNot &orig)
 assignment operator
virtual DtSimCondExprclone (DtReaderWriterRegistry *parentRegistry=NULL)
 clone operator
virtual int type () const
 Returns DtCondExprNotType (defined in condExprTypes.h).
virtual void setCondExpr (DtSimCondExpr *condExpr)
 Set the conditional sub-expression.
virtual DtSimCondExprcondExpr ()
virtual const DtSimCondExprcondExpr () 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

DtSimCondExprmyCondExpr

Detailed Description

class DtCeNot:

Instances of DtCeNot represent the logical inverse of a Conditional Expression.


Constructor & Destructor Documentation

default constructor

real constructor

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

copy constructor

virtual DtCeNot::~DtCeNot ( ) [virtual]

destructor


Member Function Documentation

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

assignment operator

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

clone operator

Implements DtSimCondExpr.

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

Returns DtCondExprNotType (defined in condExprTypes.h).

Implements DtSimCondExpr.

virtual void DtCeNot::setCondExpr ( DtSimCondExpr condExpr) [virtual]

Set the conditional sub-expression.

Note: the DtCeNot object will take over ownership of the condExpr object.

virtual DtSimCondExpr* DtCeNot::condExpr ( ) [virtual]
virtual const DtSimCondExpr* DtCeNot::condExpr ( ) const [virtual]
virtual int DtCeNot::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* DtCeNot::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 DtCeNot::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 a NOT expression, the first (0) sub-expression's prefix is the "NOT(" 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 DtCeNot::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 DtCeNot::netRepSize ( ) const [virtual]

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

Reimplemented from DtSimCondExpr.

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

Fills in the expression from the network buffer.

Reimplemented from DtSimCondExpr.

virtual bool DtCeNot::setToNet ( ) [virtual]

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

Reimplemented from DtSimCondExpr.

static DtSimCondExpr* DtCeNot::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)