OpenVDB
12.0.0
|
Class that encapsulates two CRC32 checksums, one for the Grid, Tree and Root node meta data and one for the remaining grid nodes. More...
#include <nanovdb/NanoVDB.h>
Public Member Functions | |
__hostdev__ | Checksum () |
default constructor initiates checksum to EMPTY More... | |
__hostdev__ | Checksum (uint32_t head, uint32_t tail) |
Constructor that allows the two 32bit checksums to be initiated explicitly. More... | |
__hostdev__ | Checksum (uint64_t checksum, CheckMode mode=CheckMode::Full) |
__hostdev__ uint64_t | checksum () const |
return the 64 bit checksum of this instance More... | |
__hostdev__ uint32_t & | checksum (int i) |
__hostdev__ uint32_t | checksum (int i) const |
__hostdev__ uint64_t | full () const |
__hostdev__ uint64_t & | full () |
__hostdev__ uint32_t | head () const |
__hostdev__ uint32_t & | head () |
__hostdev__ uint32_t | tail () const |
__hostdev__ uint32_t & | tail () |
__hostdev__ bool | isPartial () const |
return true if the 64 bit checksum is partial, i.e. of head only More... | |
__hostdev__ bool | isHalf () const |
__hostdev__ bool | isFull () const |
return true if the 64 bit checksum is fill, i.e. of both had and nodes More... | |
__hostdev__ bool | isEmpty () const |
return true if the 64 bit checksum is disables (unset) More... | |
__hostdev__ void | disable () |
__hostdev__ CheckMode | mode () const |
return the mode of the 64 bit checksum More... | |
__hostdev__ bool | operator== (const Checksum &rhs) const |
return true if the checksums are identical More... | |
__hostdev__ bool | operator!= (const Checksum &rhs) const |
return true if the checksums are not identical More... | |
Static Public Attributes | |
static constexpr uint32_t | EMPTY32 = ~uint32_t{0} |
static constexpr uint64_t | EMPTY64 = ~uint64_t(0) |
Class that encapsulates two CRC32 checksums, one for the Grid, Tree and Root node meta data and one for the remaining grid nodes.
|
inline |
default constructor initiates checksum to EMPTY
|
inline |
Constructor that allows the two 32bit checksums to be initiated explicitly.
head | Initial 32bit CRC checksum of grid, tree and root data |
tail | Initial 32bit CRC checksum of all the nodes and blind data |
|
inline |
checksum | |
mode |
|
inline |
return the 64 bit checksum of this instance
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
return true if the 64 bit checksum is disables (unset)
|
inline |
return true if the 64 bit checksum is fill, i.e. of both had and nodes
|
inline |
|
inline |
return true if the 64 bit checksum is partial, i.e. of head only
|
inline |
return the mode of the 64 bit checksum
|
inline |
return true if the checksums are not identical
rhs | other Checksum |
|
inline |
return true if the checksums are identical
rhs | other Checksum |
|
inline |
|
inline |
|
static |
|
static |
uint32_t mCRC32[2] |
uint64_t mCRC64 |