Hash< Foam::label > Class Template Reference

Hash specialization for hashing labels. More...

Public Member Functions

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

Detailed Description

class Foam::Hash< Foam::label >

Hash specialization for hashing labels.

Definition at line 78 of file Hash.H.

Constructor & Destructor Documentation

◆ Hash()

Hash ( )

Definition at line 82 of file Hash.H.

References Foam::Hasher(), Hash< PrimitiveType >::operator()(), and p.

Here is the call graph for this function:

Member Function Documentation

◆ operator()() [1/2]

unsigned operator() ( const label  p,
unsigned  seed 
) const

Incrementally hash a label.

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

Definition at line 88 of file Hash.H.

◆ operator()() [2/2]

unsigned operator() ( const label  p) const

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

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