0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
Hypertable::TclHash2 Struct Reference

Helper structure using overloaded operator() to calculate the Tcl hashes of various input types (using tcl_hash2, the faster implementation). More...

#include <TclHash.h>

Public Member Functions

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...
 

Detailed Description

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.

Member Function Documentation

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: