Hash< PrimitiveType > Class Template Reference

Hash function class for primitives. All non-primitives used to hash entries on hash tables likely need a specialised version of this class. More...

Inheritance diagram for Hash< PrimitiveType >:

Public Member Functions

 Hash ()
 
unsigned operator() (const PrimitiveType &p, unsigned seed) const
 
unsigned operator() (const PrimitiveType &p) const
 
unsigned operator() (const edge &e, unsigned seed) const
 Hash specialisation for hashing edges - a commutative hash value. More...
 
unsigned operator() (const edge &e) const
 Hash specialisation for hashing edges - a commutative hash value. More...
 
unsigned operator() (const triFace &t, unsigned seed) const
 Hash specialisation for hashing triFace - a commutative hash value. More...
 
unsigned operator() (const triFace &t) const
 Hash specialisation for hashing triFace - a commutative hash value. More...
 

Detailed Description

template<class PrimitiveType>
class Foam::Hash< PrimitiveType >

Hash function class for primitives. All non-primitives used to hash entries on hash tables likely need a specialised version of this class.

Definition at line 52 of file Hash.H.

Constructor & Destructor Documentation

◆ Hash()

Hash ( )
inline

Definition at line 56 of file Hash.H.

Member Function Documentation

◆ operator()() [1/6]

unsigned operator() ( const PrimitiveType &  p,
unsigned  seed 
) const
inline

Definition at line 59 of file Hash.H.

References Foam::Hasher(), and p.

Referenced by Hash< PrimitiveType >::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()() [2/6]

unsigned operator() ( const PrimitiveType &  p) const
inline

Definition at line 64 of file Hash.H.

References Foam::Hasher(), and p.

Here is the call graph for this function:

◆ operator()() [3/6]

unsigned operator() ( const edge e,
unsigned  seed 
) const
inline

Hash specialisation for hashing edges - a commutative hash value.

Hash incrementally.

Definition at line 144 of file edge.H.

References Foam::e.

◆ operator()() [4/6]

unsigned operator() ( const edge e) const
inline

Hash specialisation for hashing edges - a commutative hash value.

Hash incrementally.

Definition at line 166 of file edge.H.

References Foam::e.

◆ operator()() [5/6]

unsigned operator() ( const triFace t,
unsigned  seed 
) const
inline

Hash specialisation for hashing triFace - a commutative hash value.

Hash incrementally.

Definition at line 240 of file triFace.H.

◆ operator()() [6/6]

unsigned operator() ( const triFace t) const
inline

Hash specialisation for hashing triFace - a commutative hash value.

Definition at line 255 of file triFace.H.

References Hash< PrimitiveType >::operator()().

Here is the call graph for this function:

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