![]() |
VR-Forces 5.0.2 Developer's Guide
|
Description: DtIteratorBase is the base class for iterators used to iterate over a DtList.

Public Member Functions | |
| DtIteratorBase (const DtList &list) | |
| DtIteratorBase (const DtIteratorBase &orig) | |
| virtual | ~DtIteratorBase () |
| virtual unsigned int | size () const |
| virtual bool | empty () const |
| virtual const DtList & | list () const |
| virtual bool | reset (bool reverse=false) |
| virtual bool | reset (DtIteratorLocation location, DtIteratorDirection direction=DtIteratorForward) |
| virtual void | reverse () |
| virtual void | setDirection (DtIteratorDirection direction) |
| virtual DtIteratorDirection | direction () |
| virtual int | cursorIndex () const |
| virtual void | setCursorIndex (int i) |
| virtual T * | internalFirst (bool move=true) |
| T * | operator-> () |
| T * | operator* () |
| virtual T * | internalCurrent () const |
| virtual DtListItem * | cursor () const |
| virtual T * | itemToObject (DtListItem *item, bool move) |
| virtual T * | internalNext (bool move=true) |
| virtual T * | internalLast (bool move=true) |
| virtual T * | internalWrapNext (bool move=true) |
| virtual T * | internalPrev (bool move=true) |
| virtual T * | internalWrapPrev (bool move=true) |
| virtual T * | current () |
| virtual T * | first (bool move=true) |
| virtual T * | next (bool move=true) |
| virtual T * | prev (bool move=true) |
| virtual T * | last (bool move=true) |
| virtual T * | wrapNext (bool move=true) |
| virtual T * | wrapPrev (bool move=true) |
| T * | operator++ () |
| T * | operator-- () |
Protected Attributes | |
| const DtList & | myList |
| DtListItem * | myCursor |
| DtIteratorDirection | myDirection |
Private Member Functions | |
| DtIteratorBase () | |
| const DtIteratorBase & | operator= (const DtIteratorBase &orig) |
|
private |
|
inline |
Constructor. Supply the DtList to be iterated over.
|
inline |
Copy constructor.
|
inlinevirtual |
|
private |
Assignment Operator.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Sets the cursor and the direction of this iterator over the list. If reverse is false, DtIteratorBeginning and DtIteratorForward are used, otherwise, DtIteratorEnd and DtIteratorReverse are used. Returns true unless the list is empty.
Referenced by DtVrfProcessStateRepositoryIterator::first(), DtSimObjectStateRepositoryIterator::first(), DtIteratorBase< DtLocalVector >::internalFirst(), DtIteratorBase< DtLocalVector >::internalLast(), DtVrfProcessStateRepositoryIterator::last(), DtSimObjectStateRepositoryIterator::last(), DtIteratorBase< DtLocalVector >::reset(), and DtRecursiveResourceIterator::reset().
|
inlinevirtual |
Sets the cursor and the direction of this iterator over the list.
|
inlinevirtual |
Reverses the direction if this iterator. The cursor is not moved.
Referenced by DtIteratorBase< DtLocalVector >::reset().
|
inlinevirtual |
Sets the direction of this iterator. The cursor is not moved.
|
inlinevirtual |
Returns the current direction of the iterator.
Referenced by DtIteratorBase< DtLocalVector >::reset(), and DtIteratorBase< DtLocalVector >::setDirection().
|
inlinevirtual |
Returns current cursor index in list.
|
inlinevirtual |
|
inlinevirtual |
Returns the first vertex in the list if going DtIteratorForward, and the last vertex if going DtIteratorReverse. If move is true, first() resets this iterator to DtIteratorBeginning and DtIteratorForward if going DtIteratorForward DtIteratorEnd and DtIteratorReverse if going DtIteratorReverse.
Referenced by DtIteratorBase< DtLocalVector >::first().
|
inline |
|
inline |
|
inlinevirtual |
Returns the current vertex. The cursor is not moved.
Referenced by DtIteratorBase< DtLocalVector >::current().
|
inlinevirtual |
Returns the current cursor. Use with caution.
|
inlinevirtual |
|
inlinevirtual |
Referenced by DtIteratorBase< DtLocalVector >::next().
|
inlinevirtual |
Returns the last vertex in the list if going DtIteratorForward, and the first vertex if going DtIteratorReverse. If move is true, last() resets this iterator to DtIteratorEnd and DtIteratorReverse if going DtIteratorForward DtIteratorBeginning and DtIteratorForward if going DtIteratorReverse.
Referenced by DtIteratorBase< DtLocalVector >::last().
|
inlinevirtual |
If the cursor is 0, returns 0 (move is ignored in this case). Otherwise, returns the vertex at the next position in the list in the current direction and if move is true, moves the cursor there.
Referenced by DtIteratorBase< DtLocalVector >::wrapNext().
|
inlinevirtual |
If the cursor is 0, returns 0 (move is ignored in this case). Otherwise, returns the vertex at the previous position in the list in the current direction and if move is true, moves the cursor there.
Referenced by DtIteratorBase< DtLocalVector >::prev().
|
inlinevirtual |
Referenced by DtIteratorBase< DtLocalVector >::wrapPrev().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in DtSimObjectStateRepositoryIterator, DtRecursiveResourceIterator, and DtVrfProcessStateRepositoryIterator.
Referenced by DtTerrainInterfaceConfig::ListT< DtTerrainInterfaceConfig >::configure(), DtIteratorBase< DtLocalVector >::DtIteratorBase(), DtVrfProcessStateRepositoryIterator::first(), DtRecursiveResourceIterator::first(), DtSimObjectStateRepositoryIterator::first(), and DtRwFactoryItemList< T >::prePutSelf().
|
inlinevirtual |
|
inlinevirtual |
Referenced by DtIteratorBase< DtLocalVector >::operator--().
|
inlinevirtual |
Reimplemented in DtSimObjectStateRepositoryIterator, and DtVrfProcessStateRepositoryIterator.
Referenced by DtVrfProcessStateRepositoryIterator::last(), and DtSimObjectStateRepositoryIterator::last().
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
protected |
Referenced by DtIteratorBase< DtLocalVector >::cursorIndex(), DtIteratorBase< DtLocalVector >::empty(), DtIteratorBase< DtLocalVector >::internalFirst(), DtIteratorBase< DtLocalVector >::internalLast(), DtIteratorBase< DtLocalVector >::internalWrapNext(), DtIteratorBase< DtLocalVector >::internalWrapPrev(), DtIteratorBase< DtLocalVector >::list(), DtIteratorBase< DtLocalVector >::reset(), DtIteratorBase< DtLocalVector >::setCursorIndex(), and DtIteratorBase< DtLocalVector >::size().
|
protected |
Referenced by DtIteratorBase< DtLocalVector >::cursor(), DtIteratorBase< DtLocalVector >::cursorIndex(), DtIteratorBase< DtLocalVector >::internalCurrent(), DtIteratorBase< DtLocalVector >::internalNext(), DtIteratorBase< DtLocalVector >::internalPrev(), DtIteratorBase< DtLocalVector >::internalWrapNext(), DtIteratorBase< DtLocalVector >::internalWrapPrev(), DtIteratorBase< DtLocalVector >::itemToObject(), DtIteratorBase< DtLocalVector >::reset(), and DtIteratorBase< DtLocalVector >::setCursorIndex().
|
protected |
Referenced by DtIteratorBase< DtLocalVector >::direction(), DtIteratorBase< DtLocalVector >::internalFirst(), DtIteratorBase< DtLocalVector >::internalLast(), DtIteratorBase< DtLocalVector >::internalNext(), DtIteratorBase< DtLocalVector >::internalPrev(), DtIteratorBase< DtLocalVector >::internalWrapNext(), DtIteratorBase< DtLocalVector >::internalWrapPrev(), DtIteratorBase< DtLocalVector >::reset(), DtIteratorBase< DtLocalVector >::reverse(), and DtIteratorBase< DtLocalVector >::setDirection().