SourcePro® 2023.1 |
SourcePro® API Reference Guide |
Traverses the collection from the first to the last item. More...
#include <rw/ordcltn.h>
Public Member Functions | |
RWOrderedIterator (const RWOrdered &ord) | |
virtual RWCollectable * | findNext (const RWCollectable *target) |
virtual RWCollectable * | key () const |
virtual RWCollectable * | operator() () |
virtual void | reset () |
Iterator for class RWOrdered. Traverses the collection from the first to the last item. Like all Rogue Wave iterators, the "current item" is undefined immediately after construction – you must define it by using operator()() or some other (valid) operation.
Once the iterator has advanced beyond the end of the collection it is no longer valid – continuing to use it brings undefined results.
|
inline |
Constructs an RWOrderedIterator from an RWOrdered collection. Immediately after construction the position of the iterator is undefined.
|
virtual |
Moves the iterator to the next item which isEqual() to the item pointed to by target and returns it. If no item is found, returns rwnil and the position of the iterator is undefined.
Implements RWIterator.
|
virtual |
Returns the item at the current iterator position.
Implements RWIterator.
|
virtual |
Advances the iterator and returns the next item, or rwnil if the end of the collection has been reached.
Implements RWIterator.
|
inlinevirtual |
Resets the iterator to the state it had immediately after construction.
Implements RWIterator.
Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |