VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtStmtIndex Class Reference

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 ()
 
DtStmtIndexoperator= (const DtStmtIndex &orig)
 
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 ()
 
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

DtSimStatementmyStatement
 
const DtPlanmyPlan
 
DtStmtIdType myStatementId
 
int myTaskExecutionId
 
int mySuspendedTaskId
 

Constructor & Destructor Documentation

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.

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.

bool DtStmtIndex::isSameStatementAs ( const DtStmtIndex stmt) const
bool DtStmtIndex::isSameStatementAs ( DtSimStatement stmt) const
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
virtual int DtStmtIndex::suspendedTaskId ( ) const
virtual
virtual void DtStmtIndex::setSuspendedTaskId ( int  )
virtual
virtual bool DtStmtIndex::isSuspended ( ) const
virtual

Member Data Documentation

DtSimStatement* DtStmtIndex::myStatement
protected
const DtPlan* DtStmtIndex::myPlan
protected
DtStmtIdType DtStmtIndex::myStatementId
protected
int DtStmtIndex::myTaskExecutionId
protected
int DtStmtIndex::mySuspendedTaskId
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)