Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32hashtab.h>

Class THashSetIter

class THashSetIter : public THashTableIterBase;

Description

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.

Derivation

Members

Defined in THashSetIter:


Construction and destruction


THashSetIter(const RHashSet< T > &)

inline THashSetIter(const RHashSet< T > &aSet);

Description

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.

[Top]


Member functions


Reset()

inline void Reset();

Description

Reset the iterator to its initial state.


Current()const

inline const T* Current() const;

Description

Return the current position of the iterator.

Return value

const T *

A pointer to the set member corresponding to the current position of the iterator. NULL if the iterator has just been constructed or reset, or if it has previously reached the end of an iteration.


Next()

inline const T* Next();

Description

Steps the iterator to the next position.

Return value

const T *

A pointer to the set member corresponding to the next position of the iterator. NULL if the iterator has exhausted all the available set elements.


RemoveCurrent()

inline void RemoveCurrent();

Description

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(TUint32 *,TUint32 *,TInt,TUint32). It is illegal to call THashSetIter::Current()const on the iterator after calling Remove(TUint32 *,TUint32 *,TInt,TUint32) - the only legal operations are THashSetIter::Reset() and THashSetIter::Next().