![]() |
VR-Forces 5.0.3 Developer's Guide
|
class DtStmtIndex:
Instances of DtStmtIndex are smart pointers to DtSimStatement objects. They can access statements either by a direct pointer, or by a combination of a statementId number and a DtPlan pointer.
Public Member Functions | |
| DtStmtIndex () | |
| DtStmtIndex (const DtSimStatement *statement) | |
| DtStmtIndex (const DtSimStatement *statement, const DtPlan *plan) | |
| DtStmtIndex (int statementId, const DtPlan *plan) | |
| DtStmtIndex (const DtStmtIndex &orig, const DtPlan *plan=NULL) | |
| virtual | ~DtStmtIndex () |
| DtStmtIndex & | operator= (const DtStmtIndex &orig) |
| bool | isSameStatementAs (const DtStmtIndex &stmt) const |
| bool | isSameStatementAs (DtSimStatement *stmt) const |
| virtual DtSimStatement * | statement () const |
| virtual void | setStatement (DtSimStatement *arg) |
| virtual const DtPlan * | plan () const |
| virtual void | setPlan (const DtPlan *arg) |
| virtual DtStmtIdType | statementId () const |
| virtual void | invalidatePointer () |
| virtual bool | pointerIsInvalid () const |
| virtual void | setNull () |
| virtual bool | isNull () const |
| virtual int | taskExecutionId () const |
| virtual void | setTaskExecutionId (int v) |
| virtual int | suspendedTaskId () const |
| virtual void | setSuspendedTaskId (int) |
| virtual bool | isSuspended () const |
Protected Attributes | |
| DtSimStatement * | myStatement |
| const DtPlan * | myPlan |
| DtStmtIdType | myStatementId |
| int | myTaskExecutionId |
| int | mySuspendedTaskId |
| DtStmtIndex::DtStmtIndex | ( | ) |
Default constructor.
| DtStmtIndex::DtStmtIndex | ( | const DtSimStatement * | statement | ) |
Casting constructor.
| DtStmtIndex::DtStmtIndex | ( | const DtSimStatement * | statement, |
| const DtPlan * | plan | ||
| ) |
Construct an index of the statement in the given Plan that has the given statement's statementId.
Construct an index of the statement in the given Plan that has the given statementId. If statementId is not found in the Plan, pointerIsInvalid will be true.
| DtStmtIndex::DtStmtIndex | ( | const DtStmtIndex & | orig, |
| const DtPlan * | plan = NULL |
||
| ) |
Copy constructor.
|
virtual |
Destructor.
| DtStmtIndex& DtStmtIndex::operator= | ( | const DtStmtIndex & | orig | ) |
Assignment operator.
| bool DtStmtIndex::isSameStatementAs | ( | const DtStmtIndex & | stmt | ) | const |
| bool DtStmtIndex::isSameStatementAs | ( | DtSimStatement * | stmt | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Clears the statment pointer because it is no longer valid. Note: this DOES NOT clear myStatementId, and does not prevent the isSameStatementAs test from working.
|
virtual |
|
virtual |
Make this statement index point nowhere (clears statement ptr and id).
|
virtual |
Does this statement index point nowhere (tests for id == 0)?
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |