#include <apibase.h>
HashValue is used as return type of GetHashValue functions. It has a size of 128 bits. For reasonable hash value functions it's a practically safe assumption that there are no hash collisions.
Public Member Functions | |
HashValue ()=default | |
constexpr | HashValue (UInt64 l, UInt64 h) |
MAXON_OPERATOR_EQUALITY_HASHCODE (HashValue, low, high) | |
Bool | operator< (const HashValue &other) const |
MAXON_OPERATOR_INEQUALITY (HashValue) | |
constexpr UInt | operator& (UInt mask) const |
void | CombineUnordered (const HashValue &other) |
Public Attributes | |
UInt64 | low |
UInt64 | high |
|
default |
MAXON_OPERATOR_INEQUALITY | ( | HashValue | ) |
Returns the bitwise and of the low bits of this HashValue and the given mask.
[in] | mask | A bit mask. |
void CombineUnordered | ( | const HashValue & | other | ) |
Combines the other HashValue with this HashValue in an unordered way, which means that the effect of multiple calls to CombineUnordered doesn't depend on the order of those calls. You can use this function to compute a HashValue of a sequence of HashValues when the sequence order shall be irrelevant.
[in] | other | Another HashValue. |