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/util/GridChecksum.h>
|
static constexpr uint64_t | EMPTY = ~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.
◆ GridChecksum() [1/3]
default constructor initiates checksum to EMPTY
◆ GridChecksum() [2/3]
Constructor that allows the two 32bit checksums to be initiated explicitly.
- Parameters
-
head | Initial 32bit CRC checksum of grid, tree and root data |
tail | Initial 32bit CRC checksum of all the nodes and blind data |
◆ GridChecksum() [3/3]
◆ checksum() [1/3]
uint64_t checksum |
( |
| ) |
const |
|
inline |
return the 64 bit checksum of this instance
◆ checksum() [2/3]
uint32_t & checksum |
( |
int | i | ) |
|
|
inline |
return 32 bit (crc32) checksum of this instance
- Parameters
-
i | index of value 0 or 1 indicated the 32 bit checksum of the head or nodes |
- Returns
- non-const reference of the i'th 32bit checksum
◆ checksum() [3/3]
uint32_t checksum |
( |
int | i | ) |
const |
|
inline |
return 32 bit (crc32) checksum of this instance
- Parameters
-
i | index of value 0 or 1 indicated the 32 bit checksum of the head or nodes |
- Returns
- copy of the i'th 32bit checksum
◆ isEmpty()
return true if the 64 bit checksum is disables (unset)
◆ isFull()
return true if the 64 bit checksum is fill, i.e. of both had and nodes
◆ isPartial()
return true if the 64 bit checksum is partial, i.e. of head only
◆ mode()
return the mode of the 64 bit checksum
◆ operator!=()
return true if the checksums are not identical
- Parameters
-
◆ operator()()
compute checksum of gridData
using a 4KB blocked approach
- Parameters
-
gridData | Reference to GridData |
mode | Mode of the checksum computation |
◆ operator==()
return true if the checksums are identical
- Parameters
-
◆ EMPTY
constexpr uint64_t EMPTY = ~uint64_t(0) |
|
staticconstexpr |
◆ mChecksum
◆ mCRC