w_hashing::uhash Class Reference

List of all members.

Detailed Description

A "universal hash" class based on a random-number generator.

Helper class for other hashing classes.

Definition at line 68 of file w_hashing.h.

Public Types

typedef w_base_t::uint8_t u64

Public Member Functions

 uhash ()
 Initializes with two random numbers.
 ~uhash ()
u64 operator() (u64 x) const
 Returns a hash of the argument.

Public Attributes

u64 a
u64 b


Member Typedef Documentation

typedef w_base_t::uint8_t w_hashing::uhash::u64

Members a and b are public only for the purpose of compiling test programs

Definition at line 73 of file w_hashing.h.


The documentation for this class was generated from the following file:
Generated on Wed Jul 7 17:22:44 2010 for Shore Storage Manager by  doxygen 1.4.7