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

class DtStmtIndex: More...

List of all members.

Public Member Functions

 DtStmtIndex ()
 Default constructor.
 DtStmtIndex (const DtSimStatement *statement)
 Casting constructor.
 DtStmtIndex (const DtSimStatement *statement, const DtPlan *plan)
 Construct an index of the statement in the given Plan that has the given statement's statementId.
 DtStmtIndex (int statementId, const DtPlan *plan)
 Construct an index of the statement in the given Plan that has the given statementId.
 DtStmtIndex (const DtStmtIndex &orig, const DtPlan *plan=NULL)
 Copy constructor.
virtual ~DtStmtIndex ()
 Destructor.
DtStmtIndexoperator= (const DtStmtIndex &orig)
 Assignment operator.
bool isSameStatementAs (const DtStmtIndex &stmt) const
bool isSameStatementAs (DtSimStatement *stmt) const
virtual DtSimStatementstatement () const
virtual void setStatement (DtSimStatement *arg)
virtual const DtPlanplan () const
virtual void setPlan (const DtPlan *arg)
virtual DtStmtIdType statementId () const
virtual void invalidatePointer ()
 Clears the statment pointer because it is no longer valid.
virtual bool pointerIsInvalid () const
virtual void setNull ()
 Make this statement index point nowhere (clears statement ptr and id).
virtual bool isNull () const
 Does this statement index point nowhere (tests for id == 0)?
virtual int taskExecutionId () const
virtual void setTaskExecutionId (int v)

Protected Attributes

DtSimStatementmyStatement
const DtPlanmyPlan
DtStmtIdType myStatementId
int myTaskExecutionId

Detailed Description

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.


Constructor & Destructor Documentation

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.

DtStmtIndex::DtStmtIndex ( int  statementId,
const DtPlan plan 
)

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 DtStmtIndex::~DtStmtIndex ( ) [virtual]

Destructor.


Member Function Documentation

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

Assignment operator.

virtual DtSimStatement* DtStmtIndex::statement ( ) const [virtual]
virtual void DtStmtIndex::setStatement ( DtSimStatement arg) [virtual]
virtual const DtPlan* DtStmtIndex::plan ( ) const [virtual]
virtual void DtStmtIndex::setPlan ( const DtPlan arg) [virtual]
virtual DtStmtIdType DtStmtIndex::statementId ( ) const [virtual]
virtual void DtStmtIndex::invalidatePointer ( ) [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 bool DtStmtIndex::pointerIsInvalid ( ) const [virtual]
virtual void DtStmtIndex::setNull ( ) [virtual]

Make this statement index point nowhere (clears statement ptr and id).

virtual bool DtStmtIndex::isNull ( ) const [virtual]

Does this statement index point nowhere (tests for id == 0)?

virtual int DtStmtIndex::taskExecutionId ( ) const [virtual]
virtual void DtStmtIndex::setTaskExecutionId ( int  v) [virtual]

Member Data Documentation

const DtPlan* DtStmtIndex::myPlan [protected]

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)