Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: e32hashtab.h

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

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:
Current(), Next(), RemoveCurrent(), Reset(), THashSetIter()


Construction and destruction


THashSetIter()

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()

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