![]() |
VR-Forces 4.6 Class Documentation
|
Description: DtIteratorBase is the base class for iterators. More...

Public Member Functions | |
| 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 T * | internalFirst (bool move=true) |
| Returns the first vertex in the list if going DtIteratorForward, and the last vertex if going DtIteratorReverse. | |
| T * | operator-> () |
| T * | operator* () |
| virtual T * | internalCurrent () const |
| Returns the current vertex. The cursor is not moved. | |
| virtual DtListItem * | cursor () const |
| Returns the current cursor. Use with caution. | |
| virtual T * | itemToObject (DtListItem *item, bool move) |
| virtual T * | internalNext (bool move=true) |
| virtual T * | internalLast (bool move=true) |
| Returns the last vertex in the list if going DtIteratorForward, and the first vertex if going DtIteratorReverse. | |
| virtual T * | internalWrapNext (bool move=true) |
| If the cursor is 0, returns 0 (move is ignored in this case). | |
| virtual T * | internalPrev (bool move=true) |
| If the cursor is 0, returns 0 (move is ignored in this case). | |
| 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) |
| Assignment Operator. | |
Description: DtIteratorBase is the base class for iterators.
|
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 DtIteratorBase< DtVrfObject >::internalFirst(), DtIteratorBase< DtVrfObject >::internalLast(), and DtIteratorBase< DtVrfObject >::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< DtVrfObject >::reset().
|
inlinevirtual |
Sets the direction of this iterator. The cursor is not moved.
|
inlinevirtual |
Returns the current direction of the iterator.
Referenced by DtIteratorBase< DtVrfObject >::reset(), and DtIteratorBase< DtVrfObject >::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 DtBaseSimObjectIterator< DtVrfObject >::first(), and DtIteratorBase< DtVrfObject >::first().
|
inline |
|
inline |
|
inlinevirtual |
Returns the current vertex. The cursor is not moved.
Referenced by DtIteratorBase< DtVrfObject >::current().
|
inlinevirtual |
Returns the current cursor. Use with caution.
|
inlinevirtual |
|
inlinevirtual |
Referenced by DtBaseSimObjectIterator< DtVrfObject >::next(), and DtIteratorBase< DtVrfObject >::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 DtBaseSimObjectIterator< DtVrfObject >::last(), and DtIteratorBase< DtVrfObject >::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 DtBaseSimObjectIterator< DtVrfObject >::wrapNext(), and DtIteratorBase< DtVrfObject >::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 DtBaseSimObjectIterator< DtVrfObject >::prev(), and DtIteratorBase< DtVrfObject >::prev().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in DtVrfObjectFilterIterator, DtRecursiveStateRepositoryIterator, DtSimObjectStateRepositoryIterator, DtRecursiveResourceIterator, DtVrfProcessStateRepositoryIterator, DtBaseSimObjectIterator< T >, and DtBaseSimObjectIterator< DtVrfObject >.
Referenced by DtTerrainInterfaceConfig::ListT< DtTerrainInterfaceConfig >::configure(), and DtIteratorBase< DtVrfObject >::DtIteratorBase().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in DtVrfObjectFilterIterator, DtBaseSimObjectIterator< T >, and DtBaseSimObjectIterator< DtVrfObject >.
Referenced by DtIteratorBase< DtVrfObject >::operator--().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in DtVrfObjectFilterIterator, DtBaseSimObjectIterator< T >, and DtBaseSimObjectIterator< DtVrfObject >.
|
inlinevirtual |
Reimplemented in DtVrfObjectFilterIterator, DtBaseSimObjectIterator< T >, and DtBaseSimObjectIterator< DtVrfObject >.
|
inline |
|
inline |
|
protected |
Referenced by DtIteratorBase< DtVrfObject >::cursorIndex(), DtIteratorBase< DtVrfObject >::empty(), DtIteratorBase< DtVrfObject >::internalFirst(), DtIteratorBase< DtVrfObject >::internalLast(), DtIteratorBase< DtVrfObject >::internalWrapNext(), DtIteratorBase< DtVrfObject >::internalWrapPrev(), DtIteratorBase< DtVrfObject >::list(), DtIteratorBase< DtVrfObject >::reset(), DtIteratorBase< DtVrfObject >::setCursorIndex(), and DtIteratorBase< DtVrfObject >::size().
|
protected |
Referenced by DtIteratorBase< DtVrfObject >::cursor(), DtIteratorBase< DtVrfObject >::cursorIndex(), DtIteratorBase< DtVrfObject >::internalCurrent(), DtIteratorBase< DtVrfObject >::internalNext(), DtIteratorBase< DtVrfObject >::internalPrev(), DtIteratorBase< DtVrfObject >::internalWrapNext(), DtIteratorBase< DtVrfObject >::internalWrapPrev(), DtIteratorBase< DtVrfObject >::itemToObject(), DtIteratorBase< DtVrfObject >::reset(), and DtIteratorBase< DtVrfObject >::setCursorIndex().
|
protected |
Referenced by DtIteratorBase< DtVrfObject >::direction(), DtIteratorBase< DtVrfObject >::internalFirst(), DtIteratorBase< DtVrfObject >::internalLast(), DtIteratorBase< DtVrfObject >::internalNext(), DtIteratorBase< DtVrfObject >::internalPrev(), DtIteratorBase< DtVrfObject >::internalWrapNext(), DtIteratorBase< DtVrfObject >::internalWrapPrev(), DtIteratorBase< DtVrfObject >::reset(), DtIteratorBase< DtVrfObject >::reverse(), and DtIteratorBase< DtVrfObject >::setDirection().