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

Hash< Foam::label > Class Template Reference

Hash specialization for hashing labels. More...

#include <src/OpenFOAM/primitives/hashes/Hash/Hash.H>


Detailed Description

template<>
class Foam::Hash< Foam::label >

Hash specialization for hashing labels.

Definition at line 99 of file Hash.H.

List of all members.

Public Member Functions

 Hash ()
unsigned  operator() (const label &p, unsigned seed) const
 Incrementally hash a label.
unsigned  operator() (const label &p) const
 Return the unsigned representation of a label.

Constructor & Destructor Documentation

Hash (  ) [inline]

Definition at line 103 of file Hash.H.


Member Function Documentation

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

Incrementally hash a label.

This will necessarily return a different value than the non-incremental version.

Definition at line 109 of file Hash.H.

References Foam::Hasher().

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

Return the unsigned representation of a label.

This helps if people have relied on the hash value corresponding to the natural order.

Definition at line 117 of file Hash.H.

References p.


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