GClasses

GClasses::HashTableNode Class Reference

Objects used with GNodeHashTable should inherit from this class. They must implement two methods (to hash and compare the nodes). More...

#include <GHashTable.h>

List of all members.

Public Member Functions

 HashTableNode ()
virtual ~HashTableNode ()
virtual size_t hash (size_t nBucketCount)=0
 Returns a hash value for this node.
virtual bool equals (HashTableNode *pThat)=0
 Returns true iff this compares equal to pThat.

Detailed Description

Objects used with GNodeHashTable should inherit from this class. They must implement two methods (to hash and compare the nodes).


Constructor & Destructor Documentation

GClasses::HashTableNode::HashTableNode ( ) [inline]
virtual GClasses::HashTableNode::~HashTableNode ( ) [inline, virtual]

Member Function Documentation

virtual bool GClasses::HashTableNode::equals ( HashTableNode pThat) [pure virtual]

Returns true iff this compares equal to pThat.

virtual size_t GClasses::HashTableNode::hash ( size_t  nBucketCount) [pure virtual]

Returns a hash value for this node.