Tools.h++ Manual
21-166 104011 Tandem Computers Incorporated
21
RWSetIterator
RWSetIterator
|
RWHashTableIterator
|
RWIterator
Synopsis
#include <rw/rwset.h>
RWSet h;
RWSetIterator it(h);
Description Iterator for class
RWSet
, which allows sequential access to all the elements of
RWSet
.
Note – Because a
RWSet
is unordered, elements are not accessed in any
particular order.
Like all Tools.h++ 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 will bring undefined results.
Public constructor
RWSetIterator(RWSet&);
Construct an iterator for an
RWSet
. After construction, the position of the
iterator will be undefined.
Public member operator
virtual RWCollectable* operator()();
Inherited from
RWHashTableIterator
.