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

hash::H3HashFunction Class Reference

#include <H3HashFunction.h>

List of all members.

Public Member Functions

 H3HashFunction (uint32_t function, size_t width)
 H3 Hash function.
 ~H3HashFunction ()
 Destructor.
size_t getWidth () const
 Get width of hash value.
void hash (const uint32_t *key, size_t lenght, uint32_t *result)
 Compute the hash value for a given key.
void hash (const int32_t *key, size_t lenght, uint32_t *result)

Private Attributes

uint32_t ** function
 Hash function.
size_t fWidth
 Width of each hash value.


Constructor & Destructor Documentation

hash::H3HashFunction::H3HashFunction uint32_t  function,
size_t  width
 

H3 Hash function.

Parameters:
function,: Which hash function to use.
width,: The size of the hash value (in 32-bit words) function.

hash::H3HashFunction::~H3HashFunction  ) 
 

Destructor.


Member Function Documentation

size_t hash::H3HashFunction::getWidth  )  const [inline]
 

Get width of hash value.

Returns:
The width of the hash value. (In case you forgot)

void hash::H3HashFunction::hash const int32_t *  key,
size_t  lenght,
uint32_t *  result
[inline]
 

void hash::H3HashFunction::hash const uint32_t *  key,
size_t  lenght,
uint32_t *  result
 

Compute the hash value for a given key.

Parameters:
vals,: Pointer to the key.
length,: The length of the key (in 32-bit words).
result,: A buffer to store the hash value. The currently stored value will be used as initial value.
Precondition:
The buffer is large enough to hold the hash value.


Member Data Documentation

uint32_t** hash::H3HashFunction::function [private]
 

Hash function.

size_t hash::H3HashFunction::fWidth [private]
 

Width of each hash value.


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