HashPtr Class Reference

#include <HashPtr.hpp>

Inheritance diagram for HashPtr:

HashBase XMemory List of all members.

Public Member Functions

 HashPtr ()
virtual ~HashPtr ()
virtual unsigned int getHashVal (const void *const key, unsigned int mod)
virtual bool equals (const void *const key1, const void *const key2)

Detailed Description

The HashPtr class inherits from HashBase. This is a generic hasher class designed to hash the pointers of the objects themselves. Useful if you want to hash objects instead of strings so long as the objects don't move to a different memory location. See HashBase for more information.

Definition at line 72 of file HashPtr.hpp.


Constructor & Destructor Documentation

HashPtr::HashPtr (  ) 

virtual HashPtr::~HashPtr (  )  [virtual]


Member Function Documentation

virtual bool HashPtr::equals ( const void *const   key1,
const void *const   key2 
) [virtual]

Compares two keys and determines if they are semantically equal

Parameters:
key1 the first key to be compared
key2 the second key to be compared
Returns:
true if they are equal

Implements HashBase.

virtual unsigned int HashPtr::getHashVal ( const void *const   key,
unsigned int  mod 
) [virtual]

Returns a hash value based on the key

Parameters:
key the key to be hashed
mod the modulus the hasher should use

Implements HashBase.


The documentation for this class was generated from the following file:
Generated on Thu Dec 7 01:36:55 2006 for DT2005.panorama by  doxygen 1.4.7