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

SimpleHashAlgorithm< Key > Class Template Reference

templated hash algorithm class More...

#include <HashAlgorithms.h>

Inheritance diagram for SimpleHashAlgorithm< Key >:

AHashAlgorithm< Key > List of all members.

Public Member Functions

 SimpleHashAlgorithm (Key Capacity)
 Constructor.
virtual int Hash (const Key *key)
 Hash function.

Private Attributes

Key m_Capacity
 Capacity of the hash table.

Detailed Description

template<class Key>
class SimpleHashAlgorithm< Key >

This hash algorithm mods the value with the size of the hash table

Definition at line 29 of file HashAlgorithms.h.


Member Function Documentation

template<class Key>
int SimpleHashAlgorithm< Key >::Hash const Key *  key  )  [virtual]
 

Parameters:
key is the value to be hashed
Returns:
Returns hash value

Implements AHashAlgorithm< Key >.

Definition at line 52 of file HashAlgorithms.h.

References SimpleHashAlgorithm< Key >::m_Capacity.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 11:20:17 2005 for Cpp Freecell Solver by  doxygen 1.4.4