![]() |
VR-Forces 4.6.1 Class Documentation
|
Iterator for iterating over a DtList of state repositories. More...

Public Member Functions | |
| DtSimObjectStateRepositoryIterator (const DtList &list) | |
| Constructor. | |
| virtual | ~DtSimObjectStateRepositoryIterator () |
| Destructor. | |
| DtSimObjectStateRepository * | first (bool reset=true) |
| Calls reset() if reset arg is true (useful for for() loops). | |
| DtSimObjectStateRepository * | last (bool reset=true) |
| true (useful for iterating in reverse). | |
Public Member Functions inherited from DtIteratorBase< DtSimObjectStateRepository > | |
| DtIteratorBase (const DtList &list) | |
| Constructor. Supply the DtList to be iterated over. | |
| DtIteratorBase (const DtIteratorBase &orig) | |
| Copy constructor. | |
| virtual | ~DtIteratorBase () |
| virtual unsigned int | size () const |
| virtual bool | empty () const |
| virtual const DtList & | list () |
| virtual bool | reset (bool reverse=false) |
| Sets the cursor and the direction of this iterator over the list. | |
| virtual bool | reset (DtIteratorLocation location, DtIteratorDirection direction=DtIteratorForward) |
| Sets the cursor and the direction of this iterator over the list. | |
| virtual void | reverse () |
| Reverses the direction if this iterator. The cursor is not moved. | |
| virtual void | setDirection (DtIteratorDirection direction) |
| Sets the direction of this iterator. The cursor is not moved. | |
| virtual DtIteratorDirection | direction () |
| Returns the current direction of the iterator. | |
| virtual int | cursorIndex () const |
| Returns current cursor index in list. | |
| virtual void | setCursorIndex (int i) |
| virtual DtSimObjectStateRepository * | internalFirst (bool move=true) |
| Returns the first vertex in the list if going DtIteratorForward, and the last vertex if going DtIteratorReverse. | |
| DtSimObjectStateRepository * | operator-> () |
| DtSimObjectStateRepository * | operator* () |
| virtual DtSimObjectStateRepository * | internalCurrent () const |
| Returns the current vertex. The cursor is not moved. | |
| virtual DtListItem * | cursor () const |
| Returns the current cursor. Use with caution. | |
| virtual DtSimObjectStateRepository * | itemToObject (DtListItem *item, bool move) |
| virtual DtSimObjectStateRepository * | internalNext (bool move=true) |
| virtual DtSimObjectStateRepository * | internalLast (bool move=true) |
| Returns the last vertex in the list if going DtIteratorForward, and the first vertex if going DtIteratorReverse. | |
| virtual DtSimObjectStateRepository * | internalWrapNext (bool move=true) |
| If the cursor is 0, returns 0 (move is ignored in this case). | |
| virtual DtSimObjectStateRepository * | internalPrev (bool move=true) |
| If the cursor is 0, returns 0 (move is ignored in this case). | |
| virtual DtSimObjectStateRepository * | internalWrapPrev (bool move=true) |
| virtual DtSimObjectStateRepository * | current () |
| virtual DtSimObjectStateRepository * | next (bool move=true) |
| virtual DtSimObjectStateRepository * | prev (bool move=true) |
| virtual DtSimObjectStateRepository * | wrapNext (bool move=true) |
| virtual DtSimObjectStateRepository * | wrapPrev (bool move=true) |
| DtSimObjectStateRepository * | operator++ () |
| DtSimObjectStateRepository * | operator-- () |
Private Member Functions | |
| DtSimObjectStateRepositoryIterator () | |
| Default Constructor. Do not use. | |
| DtSimObjectStateRepositoryIterator (const DtSimObjectStateRepositoryIterator &orig) | |
| Copy Constructor. | |
| const DtSimObjectStateRepositoryIterator & | operator= (const DtSimObjectStateRepositoryIterator &orig) |
| Assignment Operator. | |
Additional Inherited Members | |
Protected Attributes inherited from DtIteratorBase< DtSimObjectStateRepository > | |
| const DtList & | myList |
| DtListItem * | myCursor |
| DtIteratorDirection | myDirection |
Iterator for iterating over a DtList of state repositories.
Used by DtAttachmentManager. This iterator does not recurse; it iterates through the attached children of an SR, not all the attached descendants. (DtRecursiveStateRepositoryIterator is used for that purpose).
|
private |
Default Constructor. Do not use.
|
private |
Copy Constructor.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
private |
Assignment Operator.
|
inlinevirtual |
Calls reset() if reset arg is true (useful for for() loops).
Returns the first object on the list
Reimplemented from DtIteratorBase< DtSimObjectStateRepository >.
|
inlinevirtual |
true (useful for iterating in reverse).
Returns the last object on the list.
Reimplemented from DtIteratorBase< DtSimObjectStateRepository >.