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

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...

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

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


Constructor & Destructor Documentation

Hash (  )  [inline]

Definition at line 47 of file Hash.H.

Referenced by Hash< Foam::label >::Hash().

Here is the caller graph for this function:


Member Function Documentation

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

Definition at line 50 of file Hash.H.

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

Definition at line 55 of file Hash.H.

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

Hash incrementally.

Definition at line 137 of file edge.H.

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

Hash incrementally.

Definition at line 161 of file edge.H.

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

Hash incrementally.

Definition at line 174 of file triFace.H.

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

Hash incrementally.

Definition at line 192 of file triFace.H.


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