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

class DtPlanBlock: More...

Inheritance diagram for DtPlanBlock:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtPlanBlock (DtPlan *plan=NULL)
 default constructor
 DtPlanBlock (const DtString &name, DtPlan *plan=NULL, DtReaderWriterRegistry *parentRegistry=NULL)
 real constructor
 DtPlanBlock (const DtPlanBlock &orig)
 default copy constructor NOTE: this does a deep copy of the statements.
 DtPlanBlock (const DtString &name, const DtPlanBlock &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 better copy constructor NOTE: this does a deep copy of the statements.
virtual ~DtPlanBlock ()
 destructor
DtPlanBlockoperator= (const DtPlanBlock &orig)
 assignment operator NOTE: this deletes the old statements and does a deep copy of the new ones.
virtual DtSimBlockclone (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) const
 The normal clone function.
virtual DtPlanplan () const
 Get a pointer to the parent plan.
virtual void setPlan (DtPlan *arg)
 Set the pointer to the parent plan.
virtual void exitFromBlock (DtPlan &planContext)
 This function is called by the last statement in the block so that the block can do whatever is appropriate at the end of this block.
virtual bool translateIndex (DtStmtIndex &stmtIndex) const
 If you have a DtStmtIndex object that used to point into the original DtSimBlock before it was copied/cloned into this one, use the translateIndex function to convert it to point into this Block.

Protected Attributes

DtPlanmyPlan

Detailed Description

class DtPlanBlock:

Instances of DtPlanBlock represent top-level blocks of statements in Plans.


Constructor & Destructor Documentation

DtPlanBlock::DtPlanBlock ( DtPlan plan = NULL)

default constructor

DtPlanBlock::DtPlanBlock ( const DtString name,
DtPlan plan = NULL,
DtReaderWriterRegistry parentRegistry = NULL 
)

real constructor

default copy constructor NOTE: this does a deep copy of the statements.

DtPlanBlock::DtPlanBlock ( const DtString name,
const DtPlanBlock orig,
DtReaderWriterRegistry parentRegistry = NULL 
)

better copy constructor NOTE: this does a deep copy of the statements.

virtual DtPlanBlock::~DtPlanBlock ( ) [virtual]

destructor


Member Function Documentation

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

assignment operator NOTE: this deletes the old statements and does a deep copy of the new ones.

virtual DtSimBlock* DtPlanBlock::clone ( const DtString name,
DtReaderWriterRegistry parentRegistry = NULL 
) const [virtual]

The normal clone function.

Implements DtSimBlock.

virtual DtPlan* DtPlanBlock::plan ( ) const [virtual]

Get a pointer to the parent plan.

virtual void DtPlanBlock::setPlan ( DtPlan arg) [virtual]

Set the pointer to the parent plan.

virtual void DtPlanBlock::exitFromBlock ( DtPlan planContext) [virtual]

This function is called by the last statement in the block so that the block can do whatever is appropriate at the end of this block.

For Plan blocks, this will Complete the parent DtPlan.

Implements DtSimBlock.

virtual bool DtPlanBlock::translateIndex ( DtStmtIndex stmtIndex) const [virtual]

If you have a DtStmtIndex object that used to point into the original DtSimBlock before it was copied/cloned into this one, use the translateIndex function to convert it to point into this Block.

Returns true if a match was found, false otherwise.

Reimplemented from DtSimBlock.


Member Data Documentation


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)