![]() |
VR-Forces 4.0.4 Class Documentation
|
File: recSRIter.h. More...

Public Member Functions | |
| DtRecursiveStateRepositoryIterator (const DtList &list) | |
| Constructor. | |
| virtual | ~DtRecursiveStateRepositoryIterator () |
| Destructor. | |
| DtSimObjectStateRepository * | first (bool reset=true) |
| Calls reset() if reset arg is true (useful for for() loops). | |
| DtSimObjectStateRepository * | current () const |
| returns the current object. List index is unmodified. | |
| DtSimObjectStateRepository * | next () |
| moves the index to the next position and returns the object at that position in the list. | |
| void | reset () |
| sets the current pointer to the start of the list. | |
Protected Attributes | |
| DtRecursiveStateRepositoryIterator * | myChildIterator |
Private Member Functions | |
| DtRecursiveStateRepositoryIterator () | |
| Default Constructor. Do not use. | |
| DtRecursiveStateRepositoryIterator (const DtRecursiveStateRepositoryIterator &orig) | |
| Copy Constructor. | |
| const DtRecursiveStateRepositoryIterator & | operator= (const DtRecursiveStateRepositoryIterator &orig) |
| Assignment Operator. | |
File: recSRIter.h.
Class: DtRecursiveStateRepositoryIterator Iterator for iterating over a DtList of state repositories and all its descendants (as represented by each repository's attachment manager). This iterator performs an pre-order iteration over the 'forest' that represents the SR's descendants. Spawned by DtAttachmentManager.
Default Constructor. Do not use.
| DtRecursiveStateRepositoryIterator::DtRecursiveStateRepositoryIterator | ( | const DtRecursiveStateRepositoryIterator & | orig | ) | [private] |
Copy Constructor.
| DtRecursiveStateRepositoryIterator::DtRecursiveStateRepositoryIterator | ( | const DtList & | list | ) | [inline] |
Constructor.
| virtual DtRecursiveStateRepositoryIterator::~DtRecursiveStateRepositoryIterator | ( | ) | [inline, virtual] |
Destructor.
| const DtRecursiveStateRepositoryIterator& DtRecursiveStateRepositoryIterator::operator= | ( | const DtRecursiveStateRepositoryIterator & | orig | ) | [private] |
Assignment Operator.
| DtSimObjectStateRepository* DtRecursiveStateRepositoryIterator::first | ( | bool | reset = true | ) | [inline, virtual] |
Calls reset() if reset arg is true (useful for for() loops).
Returns the first object on the list
Reimplemented from DtIteratorBase< DtSimObjectStateRepository >.
Referenced by next().
| DtSimObjectStateRepository* DtRecursiveStateRepositoryIterator::current | ( | ) | const [inline] |
returns the current object. List index is unmodified.
References myChildIterator.
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.
References DtSimObjectStateRepository::attachments(), DtIteratorBase< T >::current(), DtAttachmentManager::elements(), first(), and DtAttachmentManager::numAttachments().
| void DtRecursiveStateRepositoryIterator::reset | ( | ) | [inline] |
sets the current pointer to the start of the list.
Normally this isn't needed if you use the standard for loop syntax.
Referenced by current().