SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches

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>
Iterator for class RWSet, allowing sequential access to all the elements of RWSet.
Definition rwset.h:269
A group of unordered elements, not accessible by an external key, where duplicates are not allowed.
Definition rwset.h:63
Persistence
None

Constructor & Destructor Documentation

◆ RWSetIterator()

RWSetIterator::RWSetIterator ( RWSet & h)
inline

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

Member Function Documentation

◆ reset()

void RWSetIterator::reset ( )
inlinevirtual

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

Reimplemented from RWHashTableIterator.

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