Inheritance diagram for HashBase:
Public Methods | |
virtual unsigned int | getHashVal (const void *const key, unsigned int mod)=0 |
virtual bool | equals (const void *const key1, const void *const key2)=0 |
HashBase
interface is the general outline of a hasher. Hashers are used in RefHashTableOf
hashtables to hash any type of key. An examples is the HashXMLCh
class which is designed to produce hash values for XMLCh* strings. Any hasher inheriting from HashBase
may be specified when the RefHashTableOf hashtable is constructed.
|
Compares two keys and determines if they are semantically equal
Implemented in HashCMStateSet, HashPtr, and HashXMLCh. |
|
Returns a hash value based on the key
Implemented in HashCMStateSet, HashPtr, and HashXMLCh. |