SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Const iterator for class RWSet, to allow sequential access to all elements of RWSet. More...
#include <rw/rwset.h>
Public Member Functions | |
RWSetConstIterator (const RWSet &h) | |
RWSetConstIterator (const RWSetIterator &it) | |
void | reset () |
One of two iterators for class RWSet. This const
iterator allows sequential access to all the elements of RWSet and prohibits any changes to the contents of the data structure.
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.
#include <rw/rwset.h> RWSet h; RWSetConstIterator it(h);
None
RWSetConstIterator::RWSetConstIterator | ( | const RWSet & | h | ) | [inline] |
Constructs a const
iterator for an RWSet. After construction, the position of the iterator is undefined.
RWSetConstIterator::RWSetConstIterator | ( | const RWSetIterator & | it | ) | [inline] |
Constructs a const
iterator from an iterator. After construction, the position of the const
iterator is undefined.
void RWSetConstIterator::reset | ( | ) | [inline, virtual] |
Resets the iterator to the state it had immediately after construction.
Reimplemented from RWHashTableConstIterator.
Reimplemented in RWHashDictionaryConstIterator.
© Copyright 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.
Contact Rogue Wave about documentation or support issues.