GClasses
|
Objects used with GNodeHashTable should inherit from this class. They must implement two methods (to hash and compare the nodes). More...
#include <GHashTable.h>
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. |
Objects used with GNodeHashTable should inherit from this class. They must implement two methods (to hash and compare the nodes).
GClasses::HashTableNode::HashTableNode | ( | ) | [inline] |
virtual GClasses::HashTableNode::~HashTableNode | ( | ) | [inline, virtual] |
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.