#include <hashlist.h>
Public Member Functions | |
| virtual | ~Hash () |
| Destructor. | |
| virtual int | compare (KeyT const &key, T const &value) const =0 |
| Compares a value against a key. | |
| virtual uint32_t | hash (KeyT const &key, uint32_t max) const =0 |
| Hash the given key. | |
| virtual bool | match (KeyT const &key, T const &value) const =0 |
| Determines whether a key matches a value. | |
You can't use this class directly; instead, create a derived class and override the compare(), hash() and match() functions.
| T | The type of value in the hash list. | |
| KeyT | The type of the key. |
|
||||||||||||||||
|
Compares a value against the given key.
|
|
||||||||||||||||
|
Hash the given key.
|
|
||||||||||||||||
|
Determines whether a key matches the given value.
|
1.4.6