Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
lib::hash Namespace Reference

Description

Hash implementations usable for the HashIndexed mixin as well as key within std::unordered_map.

Namespaces

namespace  test
 

Classes

class  LuidH
 Hash implementation based on a lumiera unique object id (LUID) When invoking the default ctor, a new LUID is generated. More...
 
class  Plain
 simple Hash implementation directly incorporating the hash value. More...
 

Functions

void combine (size_t &combinedHash, size_t additionalHash)
 meld the additional hash value into the given base hash value.
 
HashVal hash_value (Plain const &plainHash)
 
HashVal hash_value (LuidH const &luid_Hash)
 

Function Documentation

◆ combine()

void combine ( size_t &  combinedHash,
size_t  additionalHash 
)
inline

meld the additional hash value into the given base hash value.

This is the standard formula used by Lib-Boost to combine the hash values of parts into a composite, and is based on the Murmur-2.64A hash algorithm.

see: Boost 1.67 /boost/container_hash/hash.hpp

Definition at line 60 of file hash-combine.hpp.

Referenced by TestChainLoad< maxFan >::Node::calculate(), ComputationalLoad::causeComputationLoad(), TestFrame::computeChecksum(), TestChainLoad< maxFan >::getHash(), NopJobFunctor::hashOfInstance(), DummyClosure::hashOfInstance(), steam::engine::test::ont::manipulateFrame(), steam::engine::test::ont::manipulateMultichan(), NodeDevel_test::processing_manipulateFrame(), NodeDevel_test::processing_manipulateMultichan(), lumiera::anonymous_namespace{query.hpp}::taggedHash(), JobTicket::timeHash(), TestChainLoad_test::verify_reseed_recalculate(), and TestChainLoad_test::verify_Topology().

+ Here is the caller graph for this function:

◆ hash_value() [1/2]

HashVal hash_value ( Plain const &  plainHash)
inline

Definition at line 110 of file hash-indexed.hpp.

◆ hash_value() [2/2]

HashVal hash_value ( LuidH const &  luid_Hash)
inline

Definition at line 111 of file hash-indexed.hpp.