Helper structure using overloaded operator() to calculate the Tcl hashes of various input types (using tcl_hash2, the faster implementation).
More...
#include <TclHash.h>
|
size_t | operator() (const void *start, size_t len, size_t seed=0) const |
| Returns hash of a memory buffer with an optional seed. More...
|
|
size_t | operator() (const String &s) const |
| Returns hash of a String. More...
|
|
size_t | operator() (const char *s) const |
| Returns hash of a null-terminated c-String. More...
|
|
Helper structure using overloaded operator() to calculate the Tcl hashes of various input types (using tcl_hash2, the faster implementation).
This class is usually used as a template parameter, i.e. see BlobHashTraits.h.
Definition at line 131 of file TclHash.h.
size_t Hypertable::TclHash2::operator() |
( |
const void * |
start, |
|
|
size_t |
len, |
|
|
size_t |
seed = 0 |
|
) |
| const |
|
inline |
Returns hash of a memory buffer with an optional seed.
Definition at line 133 of file TclHash.h.
size_t Hypertable::TclHash2::operator() |
( |
const String & |
s | ) |
const |
|
inline |
Returns hash of a String.
Definition at line 138 of file TclHash.h.
size_t Hypertable::TclHash2::operator() |
( |
const char * |
s | ) |
const |
|
inline |
Returns hash of a null-terminated c-String.
Definition at line 143 of file TclHash.h.
The documentation for this struct was generated from the following file:
- /home/doug/src/hypertable/src/cc/Common/TclHash.h