Public Member Functions |
| | DtMunitionResourceIterator (const DtList &list) |
| | Constructor.
|
| virtual | ~DtMunitionResourceIterator () |
| | Destructor.
|
| DtMunitionResource * | first () |
| | Calls reset() if reset arg is true (useful for for() loops).
|
| DtMunitionResource * | current () const |
| | returns the current object. List index is unmodified.
|
| DtMunitionResource * | next (bool move=true, bool recurse=false) |
| | moves the index to the next munition resource found in the list and returns the object at that position in the list.
|
| DtMunitionResource * | firstMatch (DtSimResource *initial, bool move=true, bool recurse=false) |
| | Returns the first item matching the filter test, starting with the given initial item.
|
| | DtRecursiveResourceIterator (const DtList &list) |
| | Constructor.
|
| virtual | ~DtRecursiveResourceIterator () |
| | Destructor.
|
| DtSimResource * | first (bool move=true) |
| | Calls reset() if reset arg is true (useful for for() loops).
|
| void | reset () |
| | sets the current pointer to the start of the list.
|
| | 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 DtSimResource * | internalFirst (bool move=true) |
| | Returns the first vertex in the list if going DtIteratorForward, and the last vertex if going DtIteratorReverse.
|
| virtual DtSimResource * | internalCurrent () const |
| | Returns the current vertex. The cursor is not moved.
|
| virtual DtListItem * | cursor () const |
| | Returns the current cursor. Use with caution.
|
| virtual DtSimResource * | itemToObject (DtListItem *item, bool move) |
| virtual DtSimResource * | internalNext (bool move=true) |
| virtual DtSimResource * | internalLast (bool move=true) |
| | Returns the last vertex in the list if going DtIteratorForward, and the first vertex if going DtIteratorReverse.
|
| virtual DtSimResource * | internalWrapNext (bool move=true) |
| | If the cursor is 0, returns 0 (move is ignored in this case).
|
| virtual DtSimResource * | internalPrev (bool move=true) |
| | If the cursor is 0, returns 0 (move is ignored in this case).
|
| virtual DtSimResource * | internalWrapPrev (bool move=true) |
| virtual DtSimResource * | current () |
| virtual DtSimResource * | next (bool move=true) |
| virtual DtSimResource * | prev (bool move=true) |
| virtual DtSimResource * | last (bool move=true) |
| virtual DtSimResource * | wrapNext (bool move=true) |
| virtual DtSimResource * | wrapPrev (bool move=true) |
| DtSimResource * | operator++ () |
| DtSimResource * | operator-- () |
File: munitRsrcIter.h.
Class: DtMunitionResourceIteratorDescription: DtMunitionResourceIterator is an iterator for iterating over only the munition resources in a resource list. It has recursive ability if the user wants to iterator over all resources and their subresources. Default is no recursion.