![]() |
Ultra 0.9.4
|
#include <hash_t.h>
Public Member Functions | |
| hash_t (std::uint64_t a=0, std::uint64_t b=0) | |
| void | clear () noexcept |
| Resets the content of the object. | |
| bool | operator== (const hash_t &) const noexcept=default |
| Standard equality operator for hash signature. | |
| bool | operator< (const hash_t &rhs) const noexcept |
| void | combine (hash_t h) noexcept |
| bool | empty () const noexcept |
| We assume that a string of 128 zero bits means empty. | |
| bool | load (std::istream &) |
| bool | save (std::ostream &) const |
Public Attributes | |
| std::uint64_t | data [2] |
A 128bit unsigned integer used as individual's signature / hash table look-up key.
|
inlinenoexcept |
Combines another hash into this instance.
| [in] | h | hash to be combined |
Uses prime-number multiplication (data = data * 37 + h), which preserves order sensitivity (unlike commutative XOR).
| bool ultra::hash_t::load | ( | std::istream & | in | ) |
| bool ultra::hash_t::save | ( | std::ostream & | out | ) | const |
| [out] | out | output stream |