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::TclHash Struct Reference

Helper structure using overloaded operator() to calculate the Tcl hashes of various input types. 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.

This class is usually used as a template parameter, i.e. see BlobHashTraits.h.

Definition at line 109 of file TclHash.h.

Member Function Documentation

size_t Hypertable::TclHash::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 111 of file TclHash.h.

size_t Hypertable::TclHash::operator() ( const String s) const
inline

Returns hash of a String.

Definition at line 116 of file TclHash.h.

size_t Hypertable::TclHash::operator() ( const char *  s) const
inline

Returns hash of a null-terminated c-String.

Definition at line 121 of file TclHash.h.


The documentation for this struct was generated from the following file: