THashSetIter Class Reference

class THashSetIter : public THashTableIterBase

A templated class which allows iteration over the elements of a RHashSet<T> class.

The set being iterated over may not be modified while an iteration is in progress or the iteration operations may malfunction or panic.

RHashSet<T>

Inherits from

Nested Classes and Structures

Constructor & Destructor Documentation

THashSetIter(const RHashSet< T > &)

THashSetIter ( const RHashSet < T > & aSet ) [inline]

Construct an iterator over the specified set. The iterator starts at conceptual position one before the beginning of the list being iterated.

Parameters

const RHashSet < T > & aSet The set to be iterated over.

Member Functions Documentation

Current()

const T * Current ( ) const [inline]

Return the current position of the iterator.

Next()

const T * Next ( ) [inline]

Steps the iterator to the next position.

RemoveCurrent()

void RemoveCurrent ( ) [inline]

Removes the element at the current iterator position from the hash table. If the iterator does not currently point to a valid element, no action is taken. Note that the iterator position is not altered so it no longer points to a valid element following the Remove(). It is illegal to call Current() on the iterator after calling Remove() - the only legal operations are Reset() and Next() .

Reset()

void Reset ( ) [inline]

Reset the iterator to its initial state.