HDK
|
Bit-compacted representation of all three version numbers. More...
#include <NanoVDB.h>
Public Member Functions | |
__hostdev__ | Version () |
Default constructor. More... | |
__hostdev__ | Version (uint32_t data) |
Constructor from a raw uint32_t data representation. More... | |
__hostdev__ | Version (uint32_t major, uint32_t minor, uint32_t patch) |
Constructor from major.minor.patch version numbers. More... | |
__hostdev__ bool | operator== (const Version &rhs) const |
__hostdev__ bool | operator< (const Version &rhs) const |
__hostdev__ bool | operator<= (const Version &rhs) const |
__hostdev__ bool | operator> (const Version &rhs) const |
__hostdev__ bool | operator>= (const Version &rhs) const |
__hostdev__ uint32_t | id () const |
__hostdev__ uint32_t | getMajor () const |
__hostdev__ uint32_t | getMinor () const |
__hostdev__ uint32_t | getPatch () const |
__hostdev__ bool | isCompatible () const |
__hostdev__ int | age () const |
Returns the difference between major version of this instance and NANOVDB_MAJOR_VERSION_NUMBER. More... | |
const char * | c_str () const |
returns a c-string of the semantic version, i.e. major.minor.patch More... | |
Bit-compacted representation of all three version numbers.
major is the top 11 bits, minor is the 11 middle bits and patch is the lower 10 bits
|
inline |
|
inline |
|
inline |
|
inline |
Returns the difference between major version of this instance and NANOVDB_MAJOR_VERSION_NUMBER.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |