Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::IntegerHashSuite Class Reference

Class allowing for iterative hash calculation. More...

#include <arcane/utils/HashSuite.h>

Collaboration diagram for Arcane::IntegerHashSuite:

Public Member Functions

template<class T>
void add (T value)
 Method allowing a value to be added to the hash calculation.
Int64 hash () const
 Method allowing retrieval of the hash calculated from all values passed to the add() method.

Private Attributes

UInt64 m_hash { 0 }

Detailed Description

Class allowing for iterative hash calculation.

Warning
The order in which values are provided via the add() method is important.

Definition at line 33 of file HashSuite.h.

Member Function Documentation

◆ add()

template<class T>
void Arcane::IntegerHashSuite::add ( T value)
inline

Method allowing a value to be added to the hash calculation.

Warning
The order in which values are provided via the method add() is important.
Parameters
valueThe value to add.

Definition at line 44 of file HashSuite.h.

◆ hash()

Int64 Arcane::IntegerHashSuite::hash ( ) const
inline

Method allowing retrieval of the hash calculated from all values passed to the add() method.

Returns
The hash.

Definition at line 55 of file HashSuite.h.

Member Data Documentation

◆ m_hash

UInt64 Arcane::IntegerHashSuite::m_hash { 0 }
private

Definition at line 62 of file HashSuite.h.


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