GClasses

GClasses::GHashTableEnumerator Class Reference

This class iterates over the values in a hash table. More...

#include <GHashTable.h>

List of all members.

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

GHashTableBasem_pHashTable
size_t m_nPos
size_t m_nModCount

Detailed Description

This class iterates over the values in a hash table.


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