template class PortableHashtableIterator<class KeyType, class ValueType> (Return to index)

This class is an iterator object, used for iterating over the set of keys or values in a PortableHashtable.

Type:
    Instantiable

Include file:
    ../../hashtable/PortableHashtable.h

Note that it is illegal to modify the hashtable during an iteration traversal (an assertion failure will occur if you try it, and your program will exit) Given a PortableHashtable object, you can obtain one or more of these iterator objects by calling the PortableHashtable's GetIterator() method. This iterator actually contains separate state for two iterations: one for iterating over the values in the PortableHashtable, and one for iterating over the keys. These two iterations can be done independently of each other.

Synopsis:

Public methods:



Friend methods: