|
Lolly 1.4.28
|
A generic hash function class that uses a concrete implementation of a hash function. More...
#include <hashfunc.hpp>
Private Member Functions | |
| CONCRETE_TEMPLATE_2 (hashfunc, T, U) | |
| hashfunc (U(*func)(T), U init) | |
| Constructor for hashfunc. | |
| U | operator[] (T x) |
| Applies the hash function to the given input. | |
A generic hash function class that uses a concrete implementation of a hash function.
| T | The input type of the hash function. |
| U | The output type of the hash function. |
Definition at line 44 of file hashfunc.hpp.
|
inlineprivate |
Constructor for hashfunc.
| func | A pointer to the hash function to be used. |
| init | The initial value for the hash map. |
Definition at line 52 of file hashfunc.hpp.
|
inlineprivate |
Applies the hash function to the given input.
| x | The input value to be hashed. |
Definition at line 60 of file hashfunc.hpp.