SourcePro C++ 13.0 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
Allows sequential access to all the elements of RWHashTable. More...
#include <rw/hashtab.h>
Public Member Functions | |
RWHashTableIterator (RWHashTable &h) | |
virtual RWCollectable * | findNext (const RWCollectable *target) |
virtual RWCollectable * | key () const |
virtual RWCollectable * | operator() () |
RWCollectable * | remove () |
RWCollectable * | removeNext (const RWCollectable *target) |
virtual void | reset () |
Iterator for class RWHashTable, which allows sequential access to all the elements of RWHashTable.
As with 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.
None
RWHashTableIterator::RWHashTableIterator | ( | RWHashTable & | h | ) |
Constructs an iterator for an RWHashTable. 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.
Implements RWIterator.
Reimplemented in RWHashDictionaryIterator.
|
virtual |
Returns the item at the current iterator position.
Implements RWIterator.
Reimplemented in RWHashDictionaryIterator.
|
virtual |
Advances the iterator and returns the next item, or rwnil if the end of the collection has been reached.
Implements RWIterator.
Reimplemented in RWHashDictionaryIterator.
RWCollectable* RWHashTableIterator::remove | ( | ) |
Removes the item at the current iterator position from the collection.
RWCollectable* RWHashTableIterator::removeNext | ( | const RWCollectable * | target | ) |
|
virtual |
Resets the iterator to the state it had immediately after construction.
Implements RWIterator.
Reimplemented in RWHashDictionaryIterator, and RWSetIterator.
Copyright © 2014 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.