GClasses
|
This class iterates over the values in a hash table. More...
#include <GHashTable.h>
Public Member Functions | |
GHashTableEnumerator (GHashTableBase *pHashTable) | |
const char * | next (void **ppOutValue) |
Gets the next element in the hash table. ppValue is set to the value and the return value is the key. Returns NULL when it reaches the end of the collection. (The first time it is called, it returns the first item in the collection.) | |
void * | currentValue () |
Returns the value associated with the current key. | |
Protected Attributes | |
GHashTableBase * | m_pHashTable |
size_t | m_nPos |
size_t | m_nModCount |
This class iterates over the values in a hash table.
GClasses::GHashTableEnumerator::GHashTableEnumerator | ( | GHashTableBase * | pHashTable | ) | [inline] |
void* GClasses::GHashTableEnumerator::currentValue | ( | ) |
Returns the value associated with the current key.
const char* GClasses::GHashTableEnumerator::next | ( | void ** | ppOutValue | ) |
Gets the next element in the hash table. ppValue is set to the value and the return value is the key. Returns NULL when it reaches the end of the collection. (The first time it is called, it returns the first item in the collection.)
size_t GClasses::GHashTableEnumerator::m_nModCount [protected] |
size_t GClasses::GHashTableEnumerator::m_nPos [protected] |