SourcePro® API Reference Guide

 
List of all members | Public Member Functions

Iterator for class RWSet, allowing sequential access to all the elements of RWSet. More...

#include <rw/rwset.h>

Inheritance diagram for RWSetIterator:
RWHashTableIterator RWIterator RWHashDictionaryIterator

Public Member Functions

 RWSetIterator (RWSet &h)
 
void reset ()
 
- Public Member Functions inherited from RWHashTableIterator
 RWHashTableIterator (RWHashTable &h)
 
virtual RWCollectablefindNext (const RWCollectable *target)
 
virtual RWCollectablekey () const
 
virtual RWCollectableoperator() ()
 
RWCollectableremove ()
 
RWCollectableremoveNext (const RWCollectable *target)
 

Detailed Description

Iterator for class RWSet, which allows sequential access to all the elements of RWSet.

Note
An RWSet is unordered; elements are not accessed in any particular order.

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.

Synopsis
#include <rw/rwset.h>
Persistence
None

Constructor & Destructor Documentation

RWSetIterator::RWSetIterator ( RWSet h)
inline

Constructs an iterator for an RWSet. After construction, the position of the iterator is undefined.

Member Function Documentation

void RWSetIterator::reset ( )
inlinevirtual

Resets the iterator to the state it had immediately after construction.

Reimplemented from RWHashTableIterator.

Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.