OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

Hash< void * > Class Template Reference

Hash specialization for hashing pointer addresses. More...

List of all members.


Public Member Functions

 Hash ()
unsigned operator() (const void *const &p, unsigned seed) const
unsigned operator() (const void *const &p) const

Detailed Description

template<>
class Foam::Hash< void * >

Hash specialization for hashing pointer addresses.

Treat a pointer like a long. This should work for both 32-bit and 64-bit pointers.

Definition at line 71 of file Hash.H.


Constructor & Destructor Documentation

Hash (  )  [inline]

Definition at line 75 of file Hash.H.


Member Function Documentation

unsigned operator() ( const void *const &  p,
unsigned  seed 
) const [inline]

Definition at line 78 of file Hash.H.

unsigned operator() ( const void *const &  p  )  const [inline]

Definition at line 83 of file Hash.H.


The documentation for this class was generated from the following file:
  • src/OpenFOAM/primitives/hashes/Hash/Hash.H
Copyright © 2000-2009 OpenCFD Ltd