Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lib::hash Namespace Reference

Description

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

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. More...
 
HashVal hash_value (Plain const &plainHash)
 
HashVal hash_value (LuidH const &luid_Hash)
 

Function Documentation

HashVal lib::hash::hash_value ( Plain const &  plainHash)
inline

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

HashVal lib::hash::hash_value ( LuidH const &  luid_Hash)
inline

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

void lib::hash::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 the STL and Boost to combine the hash values of parts into a composite.

Definition at line 71 of file hash-value.h.