FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

Hash< PrimitiveType > Class Template Reference

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

#include <OpenFOAM/Hash.H>


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 specialized version of this class.

Definition at line 51 of file Hash.H.

Inheritance diagram for Hash< PrimitiveType >:

List of all members.

Public Member Functions

 Hash ()
unsigned  operator() (const PrimitiveType &p, unsigned seed) const
unsigned  operator() (const PrimitiveType &p) const
template<>
unsigned  operator() (const edge &e, unsigned seed) const
template<>
unsigned  operator() (const edge &e) const
template<>
unsigned  operator() (const triFace &t, unsigned seed) const
template<>
unsigned  operator() (const triFace &t) const

Constructor & Destructor Documentation

Hash (  ) [inline]

Definition at line 55 of file Hash.H.


Member Function Documentation

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

Definition at line 58 of file Hash.H.

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

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

Definition at line 63 of file Hash.H.

unsigned operator() ( const edge &   e,
unsigned   seed  
) const [inline]

Hash incrementally.

Definition at line 138 of file edge.H.

unsigned operator() ( const edge &   e  ) const [inline]

Hash incrementally.

Definition at line 160 of file edge.H.

unsigned operator() ( const triFace &   t,
unsigned   seed  
) const [inline]

Hash incrementally.

Definition at line 169 of file triFace.H.

unsigned operator() ( const triFace &   t  ) const [inline]

Hash incrementally.

Definition at line 185 of file triFace.H.

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


The documentation for this class was generated from the following file:
  • src/OpenFOAM/primitives/hashes/Hash/Hash.H