Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

hash::StreamHasher Class Reference

Hasher class to hash on generic streams of data. More...

#include <StreamHasher.h>

List of all members.

Public Member Functions

 StreamHasher (uint32_t initVal)
 Constructor.
void addValue (uint32_t value)
 Add a value to the hash.
void addValue (int32_t value)
 Wrapper for addValue.
uint32_t hash ()
 Computes hash.

Private Attributes

uint32_t hashValue
 current hash value


Detailed Description

Hasher class to hash on generic streams of data.

WARNING: approx 5x slower than the hash_compute functions.


Constructor & Destructor Documentation

hash::StreamHasher::StreamHasher uint32_t  initVal  )  [inline]
 

Constructor.

Parameters:
initVal,: initial value for the hasher.


Member Function Documentation

void hash::StreamHasher::addValue int32_t  value  )  [inline]
 

Wrapper for addValue.

Parameters:
value,: int to wrap to uint.

void hash::StreamHasher::addValue uint32_t  value  )  [inline]
 

Add a value to the hash.

Parameters:
value,: value to hash.

uint32_t hash::StreamHasher::hash  )  [inline]
 

Computes hash.

Returns:
computed hash value.


Member Data Documentation

uint32_t hash::StreamHasher::hashValue [private]
 

current hash value


The documentation for this class was generated from the following file:
Generated on Fri Jun 30 00:03:00 2006 for Module hash by  doxygen 1.4.2