GClasses
GClasses::HashTableNode Class Referenceabstract

Detailed Description

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

#include <GHashTable.h>

Public Member Functions

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

Constructor & Destructor Documentation

GClasses::HashTableNode::HashTableNode ( )
inline
virtual GClasses::HashTableNode::~HashTableNode ( )
inlinevirtual

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.