OpenVDB  12.0.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
LeafIndexBase< CoordT, MaskT, LOG2DIM > Struct Template Reference

#include <nanovdb/NanoVDB.h>

Inherited by LeafData< ValueIndex, CoordT, MaskT, LOG2DIM >, and LeafData< ValueOnIndex, CoordT, MaskT, LOG2DIM >.

Public Types

using ValueType = uint64_t
 
using FloatType = uint64_t
 
using ArrayType = void
 

Public Member Functions

__hostdev__ bool hasStats () const
 
__hostdev__ const uint64_t & firstOffset () const
 
__hostdev__ void setMin (const ValueType &)
 
__hostdev__ void setMax (const ValueType &)
 
__hostdev__ void setAvg (const FloatType &)
 
__hostdev__ void setDev (const FloatType &)
 
__hostdev__ void setOn (uint32_t offset)
 
template<typename T >
__hostdev__ void setOrigin (const T &ijk)
 

Static Public Member Functions

static __hostdev__ constexpr uint32_t padding ()
 
static __hostdev__ uint64_t memUsage ()
 

Public Attributes

CoordT mBBoxMin
 
uint8_t mBBoxDif [3]
 
uint8_t mFlags
 
MaskT< LOG2DIM > mValueMask
 
uint64_t mOffset
 
uint64_t mPrefixSum
 

Static Public Attributes

static constexpr bool FIXED_SIZE = true
 

Protected Member Functions

 LeafIndexBase ()=default
 This class should be used as an abstract class and only constructed or deleted via child classes. More...
 
 LeafIndexBase (const LeafIndexBase &)=default
 
LeafIndexBaseoperator= (const LeafIndexBase &)=default
 
 ~LeafIndexBase ()=default
 

Member Typedef Documentation

using ArrayType = void
using FloatType = uint64_t
using ValueType = uint64_t

Constructor & Destructor Documentation

LeafIndexBase ( )
protecteddefault

This class should be used as an abstract class and only constructed or deleted via child classes.

LeafIndexBase ( const LeafIndexBase< CoordT, MaskT, LOG2DIM > &  )
protecteddefault
~LeafIndexBase ( )
protecteddefault

Member Function Documentation

__hostdev__ const uint64_t& firstOffset ( ) const
inline
__hostdev__ bool hasStats ( ) const
inline
static __hostdev__ uint64_t memUsage ( )
inlinestatic
LeafIndexBase& operator= ( const LeafIndexBase< CoordT, MaskT, LOG2DIM > &  )
protecteddefault
static __hostdev__ constexpr uint32_t padding ( )
inlinestatic
__hostdev__ void setAvg ( const FloatType )
inline
__hostdev__ void setDev ( const FloatType )
inline
__hostdev__ void setMax ( const ValueType )
inline
__hostdev__ void setMin ( const ValueType )
inline
__hostdev__ void setOn ( uint32_t  offset)
inline
__hostdev__ void setOrigin ( const T &  ijk)
inline

Member Data Documentation

constexpr bool FIXED_SIZE = true
static
uint8_t mBBoxDif[3]
CoordT mBBoxMin
uint8_t mFlags
uint64_t mOffset
uint64_t mPrefixSum
MaskT<LOG2DIM> mValueMask