OpenVDB  11.0.0
Public Member Functions | List of all members
Version Class Reference

Bit-compacted representation of all three version numbers. More...

#include <nanovdb/NanoVDB.h>

Public Member Functions

 Version ()
 
 Version (uint32_t data)
 
 Version (uint32_t major, uint32_t minor, uint32_t patch)
 
bool operator== (const Version &rhs) const
 
bool operator< (const Version &rhs) const
 
bool operator<= (const Version &rhs) const
 
bool operator> (const Version &rhs) const
 
bool operator>= (const Version &rhs) const
 
uint32_t id () const
 
uint32_t getMajor () const
 
uint32_t getMinor () const
 
uint32_t getPatch () const
 
bool isCompatible () const
 
int age () const
 Check the major version of this instance relative to NANOVDB_MAJOR_VERSION_NUMBER. More...
 
const char * c_str () const
 

Detailed Description

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

Constructor & Destructor Documentation

Version ( )
inline
Version ( uint32_t  data)
inline
Version ( uint32_t  major,
uint32_t  minor,
uint32_t  patch 
)
inline

Member Function Documentation

int age ( ) const
inline

Check the major version of this instance relative to NANOVDB_MAJOR_VERSION_NUMBER.

Returns
return 0 if the major version equals NANOVDB_MAJOR_VERSION_NUMBER, else a negative age if it is older, i.e. smaller, and a positive age if it's newer, i.e.e larger.
const char* c_str ( ) const
inline
uint32_t getMajor ( ) const
inline
uint32_t getMinor ( ) const
inline
uint32_t getPatch ( ) const
inline
uint32_t id ( ) const
inline
bool isCompatible ( ) const
inline
bool operator< ( const Version rhs) const
inline
bool operator<= ( const Version rhs) const
inline
bool operator== ( const Version rhs) const
inline
bool operator> ( const Version rhs) const
inline
bool operator>= ( const Version rhs) const
inline