|
cppcore
A small, portable C++ core library
|
This class is used to calculate the hash value for a given integer or character buffer. More...
#include <Hash.h>
Public Member Functions | |
| THash ()=default | |
| The default class constructor. | |
| THash (T hash) | |
| The class constructor with a given hash value. | |
| THash (const char *buffer, T base) | |
| The class constructor with a given char buffer. | |
| THash (T value, T base) | |
| The class constructor with a given unsigned int value. | |
| ~THash ()=default | |
| The class destructor. | |
| T | hashValue () const |
| brief Returns the stored hash value. | |
Static Public Member Functions | |
| static T | toHash (const char *buffer, T base) |
| Computes the hash value for a given character buffer. | |
| static T | toHash (T value, T base) |
| Computes the hash value for a given unsigned int value. | |
This class is used to calculate the hash value for a given integer or character buffer.
|
default |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
default |
The class destructor.
|
inline |
|
inlinestatic |
Computes the hash value for a given character buffer.
| buffer | [in] The buffer. |
| base | [in] The table base. |
Definition at line 94 of file Hash.h.
Referenced by cppcore::THashMap< T, U, TAlloc >::getValue(), cppcore::THashMap< T, U, TAlloc >::hasKey(), cppcore::THashMap< T, U, TAlloc >::insert(), cppcore::THashMap< T, U, TAlloc >::operator[](), cppcore::THashMap< T, U, TAlloc >::remove(), THash(), THash(), and cppcore::TStringBase< T >::TStringBase().
|
inlinestatic |