MDL SDK API nvidia_logo_transpbg.gif Up
mi::mdl::DAG_hash Class Reference

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...
 

Detailed Description

A hash value.

Hash values are used inside the MDL Core library to identify changes inside (re-)compiled material instances.

Constructor & Destructor Documentation

 DAG_hash() [1/2]

mi::mdl::DAG_hash::DAG_hash ( )
inline

Default constructor.

 DAG_hash() [2/2]

mi::mdl::DAG_hash::DAG_hash ( unsigned char const (&)  arr[16])
inlineexplicit

Constructor from an array of 16 bytes.

Parameters
arran array of 16 bytes

Member Function Documentation

 data() [1/2]

unsigned char * mi::mdl::DAG_hash::data ( )
inline

Access raw data.

Returns
a pointer to the raw 16 hash bytes

 data() [2/2]

unsigned char const * mi::mdl::DAG_hash::data ( ) const
inline

Read-only access raw data.

Returns
a read-only pointer to the raw 16 hash bytes

 operator!=()

bool mi::mdl::DAG_hash::operator!= ( DAG_hash const &  other) const
inline

Compare two hashes for non-equality.

Parameters
otherthe other hash

 operator<()

bool mi::mdl::DAG_hash::operator< ( DAG_hash const &  other) const
inline

Compare two hashes for less-than.

Parameters
otherthe other hash

 operator<=()

bool mi::mdl::DAG_hash::operator<= ( DAG_hash const &  other) const
inline

Compare two hashes for less-than or equal.

Parameters
otherthe other hash

 operator==()

bool mi::mdl::DAG_hash::operator== ( DAG_hash const &  other) const
inline

Compare two hashes for equality.

Parameters
otherthe other hash

 operator>()

bool mi::mdl::DAG_hash::operator> ( DAG_hash const &  other) const
inline

Compare two hashes for greater-than.

Parameters
otherthe other hash

 operator>=()

bool mi::mdl::DAG_hash::operator>= ( DAG_hash const &  other) const
inline

Compare two hashes for greater-than or equal.

Parameters
otherthe other hash

 operator[]()

unsigned char mi::mdl::DAG_hash::operator[] ( size_t  n) const
inline

Read hash bytes.

Parameters
nindex of the byte to access

 size()

static size_t mi::mdl::DAG_hash::size ( )
inlinestatic

Get the size of the raw data.