regina::HashPointer Struct Reference
[General Utility Classes]

A hash function used to calculate hash values for arbitrary pointers. More...

#include <hashutils.h>

List of all members.

Public Member Functions

size_t operator() (const void *p) const
 Returns a hash value for the given pointer.


Detailed Description

A hash function used to calculate hash values for arbitrary pointers.

This class is for use with the Standard Template Library.

The only guarantee provided by this hash function is that two pointers representing the same memory location will return the same hash value. Two pointers pointing to identical data in two different memory locations might very well return two different hash values.

Python:
Not present.

Member Function Documentation

size_t regina::HashPointer::operator() ( const void *  p  )  const [inline]

Returns a hash value for the given pointer.

See the general class notes for further details.

Parameters:
p the pointer whose hash value should be calculated.
Returns:
the corresponding hash value.


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

Copyright © 1999-2008, Ben Burton
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).