![]() |
VR-Forces 4.0.4 Class Documentation
|
class DtCeConstant: More...

Public Member Functions | |
| DtCeConstant () | |
| default constructor | |
| DtCeConstant (bool value, DtReaderWriterRegistry *parentRegistry=NULL) | |
| real constructor | |
| DtCeConstant (const DtCeConstant &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| virtual | ~DtCeConstant () |
| destructor | |
| DtCeConstant & | operator= (const DtCeConstant &orig) |
| assignment operator | |
| virtual DtSimCondExpr * | clone (DtReaderWriterRegistry *parentRegistry=NULL) |
| clone operator | |
| virtual int | type () const |
| Returns DtCondExprTrueType or DtCondExprFalseType, depending on our value (defined in condExprTypes.h). | |
| virtual bool | value () const |
| The actual constant value. | |
| virtual DtString | stringRep (int subExprIndex=DtSR_EXPR) const |
| Get a readable string representation of this level of this expression. | |
| 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 * | creatorTrue () |
| static DtSimCondExpr * | creatorFalse () |
Protected Attributes | |
| bool | myValue |
class DtCeConstant:
Instances of DtCeConstant represent logical constants (True/False).
default constructor
| DtCeConstant::DtCeConstant | ( | bool | value, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
real constructor
| DtCeConstant::DtCeConstant | ( | const DtCeConstant & | orig, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| virtual DtCeConstant::~DtCeConstant | ( | ) | [virtual] |
destructor
| DtCeConstant& DtCeConstant::operator= | ( | const DtCeConstant & | orig | ) |
assignment operator
| virtual DtSimCondExpr* DtCeConstant::clone | ( | DtReaderWriterRegistry * | parentRegistry = NULL | ) | [virtual] |
clone operator
Implements DtSimCondExpr.
| virtual int DtCeConstant::type | ( | ) | const [virtual] |
Returns DtCondExprTrueType or DtCondExprFalseType, depending on our value (defined in condExprTypes.h).
Implements DtSimCondExpr.
| virtual bool DtCeConstant::value | ( | ) | const [virtual] |
The actual constant value.
| virtual DtString DtCeConstant::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 if this expression can have sub-expressions. Since a DtCeConstant has no sub-expressions, it only returns a string representation if passed an index of DtSimCondExpr::DtSR_EXPR.
See the documentation for DtSimCondExpr::stringRep for more information.
Implements DtSimCondExpr.
| virtual int DtCeConstant::netRepSize | ( | ) | const [virtual] |
returns the size of the full network representation padded to an 8-byte boundary.
Reimplemented from DtSimCondExpr.
| virtual bool DtCeConstant::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Fills in the expression from the network buffer.
Reimplemented from DtSimCondExpr.
| virtual bool DtCeConstant::setToNet | ( | ) | [virtual] |
Fills in the network buffer (created by base class conditional expression) with the conditional expression contents.
Reimplemented from DtSimCondExpr.
| static DtSimCondExpr* DtCeConstant::creatorTrue | ( | ) | [static] |
| static DtSimCondExpr* DtCeConstant::creatorFalse | ( | ) | [static] |
bool DtCeConstant::myValue [protected] |