A hash value. More...
#include <mdl_generated_dag.h>
Public Member Functions | |
DAG_hash () | |
Default constructor. More... | |
DAG_hash (unsigned char const (&arr)[16]) | |
Constructor from an array of 16 bytes. More... | |
bool | operator== (DAG_hash const &other) const |
Compare two hashes for equality. More... | |
bool | operator!= (DAG_hash const &other) const |
Compare two hashes for non-equality. More... | |
bool | operator< (DAG_hash const &other) const |
Compare two hashes for less-than. More... | |
bool | operator<= (DAG_hash const &other) const |
Compare two hashes for less-than or equal. More... | |
bool | operator> (DAG_hash const &other) const |
Compare two hashes for greater-than. More... | |
bool | operator>= (DAG_hash const &other) const |
Compare two hashes for greater-than or equal. More... | |
unsigned char | operator[] (size_t n) const |
Read hash bytes. More... | |
unsigned char * | data () |
Access raw data. More... | |
unsigned char const * | data () const |
Read-only access raw data. More... | |
Static Public Member Functions | |
static size_t | size () |
Get the size of the raw data. More... | |
A hash value.
Hash values are used inside the MDL Core library to identify changes inside (re-)compiled material instances.
|
inline |
Default constructor.
|
inlineexplicit |
Constructor from an array of 16 bytes.
arr | an array of 16 bytes |
|
inline |
Access raw data.
|
inline |
Read-only access raw data.
|
inline |
Compare two hashes for non-equality.
other | the other hash |
|
inline |
Compare two hashes for less-than.
other | the other hash |
|
inline |
Compare two hashes for less-than or equal.
other | the other hash |
|
inline |
Compare two hashes for equality.
other | the other hash |
|
inline |
Compare two hashes for greater-than.
other | the other hash |
|
inline |
Compare two hashes for greater-than or equal.
other | the other hash |
|
inline |
Read hash bytes.
n | index of the byte to access |
|
inlinestatic |
Get the size of the raw data.