class TPtrHashMapIter : public THashTableIterBase |
A templated class which allows iteration over the elements of a RPtrHashMap<K,V> class.
The array being iterated over may not be modified while an iteration is in progress or the iteration operations may malfunction or panic.
RPtrHashMap<K,V>
Public Member Functions | |
---|---|
TPtrHashMapIter (const RPtrHashMap < K, V > &) | |
const K * | CurrentKey () |
const V * | CurrentValue () |
const K * | NextKey () |
const V * | NextValue () |
void | RemoveCurrent () |
void | Reset () |
Inherited Functions | |
---|---|
THashTableIterBase::Current(TInt)const | |
THashTableIterBase::Next(TInt) | |
THashTableIterBase::THashTableIterBase(const RHashTableBase &) |
TPtrHashMapIter | ( | const RPtrHashMap < K, V > & | aMap | ) | [inline] |
Construct an iterator over the specified associative array. The iterator starts at conceptual position one before the beginning of the list being iterated.
const RPtrHashMap < K, V > & aMap | The array to be iterated over. |
const K * | CurrentKey | ( | ) | const [inline] |
Return the key corresponding to the current position of the iterator.
const V * | CurrentValue | ( | ) | const [inline] |
Return the value corresponding to the current position of the iterator.
const K * | NextKey | ( | ) | [inline] |
Steps the iterator to the next position and returns the corresponding key.
const V * | NextValue | ( | ) | [inline] |
Steps the iterator to the next position and returns the corresponding value.
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 either CurrentKey() or CurrentValue() on the iterator after calling Remove() - the only legal operations are Reset() , NextKey() or NextValue() .
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.