![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/hash.h>
Inheritance diagram for HashKey< T >:Public Member Functions | |
| t::hash | computeHash (const T &key) const |
| bool | isEqual (const T &key1, const T &key2) const |
Static Public Member Functions | |
| static t::hash | hash (const T &key) |
| static bool | equals (const T &key1, const T &key2) |
This is the default implementation of the Hash concept in ELM. It provides a generic Jenkins hash function but provides also easier or more adapted hash functions for current types like integers, void pointer or strings.
Refer to concept::Hash concept for more details.
|
inline |
References HashKey< T >::hash().
|
inlinestatic |
|
inlinestatic |
References elm::hash_jenkins().
Referenced by Hasher::add(), HashKey< sys::Path >::computeHash(), HashKey< T >::computeHash(), HashKey< Pair< T1, T2 > >::computeHash(), HashKey< CString >::computeHash(), HashKey< int >::computeHash(), HashKey< String >::computeHash(), HashKey< Pair< T1, T2 > >::hash(), and elm::hash().
|
inline |
References HashKey< T >::equals().