Public Member Functions | List of all members
Hash< void * > Class Template Reference

Hash specialization for hashing pointer addresses. More...

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 208 of file Hash.H.

Constructor & Destructor Documentation

◆ Hash()

Hash ( )
inline

Definition at line 212 of file Hash.H.

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 215 of file Hash.H.

◆ operator()() [2/2]

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

Definition at line 220 of file Hash.H.


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