Iterator for iterating over a DtRwIntrusiveList of DtSimStatements and all its descendants (as represented by each DtSimStatement's list of DtSimBlock subblocks).
More...
Detailed Description
Iterator for iterating over a DtRwIntrusiveList of DtSimStatements and all its descendants (as represented by each DtSimStatement's list of DtSimBlock subblocks).
This iterator performs an pre-order iteration over the 'forest' that represents the DtSimBlock's descendants.
Constructor & Destructor Documentation
| DtRecursiveSimBlockIterator::DtRecursiveSimBlockIterator |
( |
| ) |
|
|
protected |
Default Constructor. Do not use.
| DtRecursiveSimBlockIterator::DtRecursiveSimBlockIterator |
( |
DtSimBlock * |
simBlock | ) |
|
Constructor.
simBlock is the DtSimBlock whose statements are to be iterated over.
| virtual DtRecursiveSimBlockIterator::~DtRecursiveSimBlockIterator |
( |
| ) |
|
|
virtual |
Member Function Documentation
Calls reset() if reset arg is true (useful for for() loops).
Returns the first object on the list
| virtual DtSimStatement* DtRecursiveSimBlockIterator::current |
( |
| ) |
const |
|
virtual |
returns the current object. List index is unmodified.
moves the index to the next position and returns the object at that position in the list.
Returns null if already at the end of list.
| virtual void DtRecursiveSimBlockIterator::reset |
( |
| ) |
|
|
virtual |
sets the current pointer to the start of the list.
Normally this isn't needed if you use the standard for loop syntax.
get a pointer to the cursor. Use with care.
| virtual DtSimStatement* DtRecursiveSimBlockIterator::parentStatement |
( |
| ) |
const |
|
virtual |
set/get a pointer to the current statement's parent statement.
Accessor is recursive. If currently iterating over a child (myChildIterator exists), invokes child iterator's parentStatement() method. Otherwise, returns myParentStmt.
| virtual int DtRecursiveSimBlockIterator::parentSubBlockIndex |
( |
| ) |
const |
|
virtual |
set/get index of parent subblock in which the current statement resides.
Accessor is recursive. If currently iterating over a child (myChildIterator exists), invokes child iterator's subBlockIndex() method. Otherwise, returns myParentSubBlockIndex.
set/get parent iterator.
parentIterator is the iterator over our parent statement. Should be NULL in the case that simBlock is the top-level block in a plan. parentIterator is the iterator that created us.
Member Data Documentation
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.tot/include/vrfplan/recBlockIter.h