A 128bit unsigned integer used as individual's signature / hash table look-up key.
More...
#include <cache_hash.h>
|
std::uint_least64_t | data [2] |
|
A 128bit unsigned integer used as individual's signature / hash table look-up key.
Definition at line 26 of file cache_hash.h.
◆ hash_t()
vita::hash_t::hash_t |
( |
std::uint64_t |
a = 0 , |
|
|
std::uint64_t |
b = 0 |
|
) |
| |
|
inlineexplicit |
◆ clear()
void vita::hash_t::clear |
( |
| ) |
|
|
inline |
Resets the content of the object.
Definition at line 31 of file cache_hash.h.
◆ combine()
void vita::hash_t::combine |
( |
hash_t |
h | ) |
|
|
inline |
◆ empty()
bool vita::hash_t::empty |
( |
| ) |
const |
|
inline |
We assume that a string of 128 zero bits means empty.
Definition at line 61 of file cache_hash.h.
◆ load()
bool vita::hash_t::load |
( |
std::istream & |
in | ) |
|
- Parameters
-
- Returns
true
if hash_t loaded correctly
- Note
- If the load operation isn't successful the current hash_t isn't changed.
Definition at line 26 of file cache_hash.cc.
◆ operator!=()
bool vita::hash_t::operator!= |
( |
hash_t |
h | ) |
const |
|
inline |
Standard inequality operator for hash signature.
Definition at line 38 of file cache_hash.h.
◆ operator==()
bool vita::hash_t::operator== |
( |
hash_t |
h | ) |
const |
|
inline |
Standard equality operator for hash signature.
Definition at line 34 of file cache_hash.h.
◆ save()
bool vita::hash_t::save |
( |
std::ostream & |
out | ) |
const |
◆ data
std::uint_least64_t vita::hash_t::data[2] |
The documentation for this struct was generated from the following files: