![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtCeAnd () | |
| default constructor | |
| DtCeAnd (DtReaderWriterRegistry *parentRegistry) | |
| real constructor | |
| DtCeAnd (const DtCeAnd &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| virtual | ~DtCeAnd () |
| destructor | |
| DtCeAnd & | operator= (const DtCeAnd &orig) |
| assignment operator | |
| virtual DtSimCondExpr * | clone (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 DtSimCondExpr * | leftCondExpr () |
| virtual const DtSimCondExpr * | leftCondExpr () const |
| virtual void | setRightCondExpr (DtSimCondExpr *rightExpr) |
| Set the right conditional sub-expression. | |
| virtual DtSimCondExpr * | rightCondExpr () |
| virtual const DtSimCondExpr * | rightCondExpr () const |
| virtual int | subExprCount () const |
| Get the number of sub-expressions nested inside this expression. | |
| virtual DtSimCondExpr * | subExpr (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 DtSimCondExpr * | creator () |
Protected Attributes | |
| DtSimCondExpr * | myLeftCondExpr |
| DtSimCondExpr * | myRightCondExpr |
| DtCeAnd::DtCeAnd | ( | ) |
default constructor
| DtCeAnd::DtCeAnd | ( | DtReaderWriterRegistry * | parentRegistry | ) |
real constructor
| DtCeAnd::DtCeAnd | ( | const DtCeAnd & | orig, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| virtual DtCeAnd::~DtCeAnd | ( | ) | [virtual] |
destructor
| virtual DtSimCondExpr* DtCeAnd::clone | ( | DtReaderWriterRegistry * | parentRegistry = NULL | ) | [virtual] |
clone operator
Implements DtSimCondExpr.
| virtual int DtCeAnd::type | ( | ) | const [virtual] |
Returns the type of conditional expression defined in condExprTypes.h.
DtCondExprAndType
Implements DtSimCondExpr.
| virtual void DtCeAnd::setLeftCondExpr | ( | DtSimCondExpr * | leftExpr | ) | [virtual] |
Set the left conditional sub-expression.
Note: the DtCeAnd object will take over ownership of the leftExpr object.
| virtual DtSimCondExpr* DtCeAnd::leftCondExpr | ( | ) | [virtual] |
| virtual const DtSimCondExpr* DtCeAnd::leftCondExpr | ( | ) | const [virtual] |
| virtual void DtCeAnd::setRightCondExpr | ( | DtSimCondExpr * | rightExpr | ) | [virtual] |
Set the right conditional sub-expression.
Note: the DtCeAnd object will take over ownership of the rightExpr object.
| virtual DtSimCondExpr* DtCeAnd::rightCondExpr | ( | ) | [virtual] |
| virtual const DtSimCondExpr* DtCeAnd::rightCondExpr | ( | ) | const [virtual] |
| virtual int DtCeAnd::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* DtCeAnd::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 DtCeAnd::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 AND expression, the first (0) sub-expression's prefix is the "AND(" 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 DtCeAnd::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 DtCeAnd::netRepSize | ( | ) | const [virtual] |
returns the size of the full network representation padded to an 8-byte boundary.
Reimplemented from DtSimCondExpr.
| virtual bool DtCeAnd::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Fills in the expression from the network buffer.
Reimplemented from DtSimCondExpr.
| virtual bool DtCeAnd::setToNet | ( | ) | [virtual] |
Fills in the network buffer (created by base class conditional expression) with the conditional expression contents.
Reimplemented from DtSimCondExpr.
| static DtSimCondExpr* DtCeAnd::creator | ( | ) | [static] |
DtSimCondExpr* DtCeAnd::myLeftCondExpr [protected] |
DtSimCondExpr* DtCeAnd::myRightCondExpr [protected] |