Nevelex Corporation Nevelex Utilities 1.1.4 09/06/2003
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

nevelex_util::PointerHash Class Template Reference

#include <PointerHash.h>

List of all members.

Public Methods

size_t operator() (T const &key) const


Detailed Description

template<class T> class nevelex_util::PointerHash

Functor class to use as the hash function for templates that use pointers. The hash value is simply the memory location of the pointer.

Author:
Michel Dalal
Date:
Wed Sep 25 2002
Version:
1.0: Initial version.


Member Function Documentation

template<class T>
size_t nevelex_util::PointerHash<T>::operator() ( T const & key ) const [inline]
 

Functor operator implementation returns the pointer's memory location as the hash value.

Parameters:
key   reference to a template object pointer.
Returns:
the hash value of the supplied key.


The documentation for this class was generated from the following file: