GClasses
GClasses::GHashTableEnumerator Class Reference

Detailed Description

This class iterates over the values in a hash table.

#include <GHashTable.h>

Public Member Functions

 GHashTableEnumerator (GHashTableBase *pHashTable)
 
void * currentValue ()
 Returns the value associated with the current key. More...
 
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.) More...
 

Protected Attributes

size_t m_nModCount
 
size_t m_nPos
 
GHashTableBasem_pHashTable
 

Constructor & Destructor Documentation

GClasses::GHashTableEnumerator::GHashTableEnumerator ( GHashTableBase pHashTable)
inline

Member Function Documentation

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

Member Data Documentation

size_t GClasses::GHashTableEnumerator::m_nModCount
protected
size_t GClasses::GHashTableEnumerator::m_nPos
protected
GHashTableBase* GClasses::GHashTableEnumerator::m_pHashTable
protected