OpenVDB 12.0.0
Loading...
Searching...
No Matches
LeafData< Point, CoordT, MaskT, LOG2DIM > Struct Template Reference

#include </private/tmp/openvdb-20241101-7014-5j8vk0/openvdb-12.0.0/nanovdb/nanovdb/NanoVDB.h>

Public Types

using ValueType = uint64_t
 
using BuildType = Point
 
using FloatType = typename FloatTraits<ValueType>::FloatType
 
using ArrayType = uint16_t
 

Public Member Functions

__hostdev__ uint64_t offset () const
 
__hostdev__ uint64_t pointCount () const
 
__hostdev__ uint64_t first (uint32_t i) const
 
__hostdev__ uint64_t last (uint32_t i) const
 
__hostdev__ uint64_t getValue (uint32_t i) const
 
__hostdev__ void setValueOnly (uint32_t offset, uint16_t value)
 
__hostdev__ void setValue (uint32_t offset, uint16_t value)
 
__hostdev__ void setOn (uint32_t offset)
 
__hostdev__ ValueType getMin () const
 
__hostdev__ ValueType getMax () const
 
__hostdev__ FloatType getAvg () const
 
__hostdev__ FloatType getDev () const
 
__hostdev__ void setMin (const ValueType &)
 
__hostdev__ void setMax (const ValueType &)
 
__hostdev__ void setAvg (const FloatType &)
 
__hostdev__ void setDev (const FloatType &)
 
template<typename T >
__hostdev__ void setOrigin (const T &ijk)
 
 LeafData ()=delete
 This class cannot be constructed or deleted.
 
 LeafData (const LeafData &)=delete
 
LeafDataoperator= (const LeafData &)=delete
 
 ~LeafData ()=delete
 

Static Public Member Functions

static __hostdev__ constexpr uint32_t padding ()
 Return padding of this class in bytes, due to aliasing and 32B alignment.
 
static __hostdev__ uint64_t memUsage ()
 

Public Attributes

CoordT mBBoxMin
 
uint8_t mBBoxDif [3]
 
uint8_t mFlags
 
MaskT< LOG2DIM > mValueMask
 
uint64_t mOffset
 
uint64_t mPointCount
 
uint16_t mValues [1u<< 3 *LOG2DIM]
 

Static Public Attributes

static constexpr bool FIXED_SIZE = true
 

Member Typedef Documentation

◆ ArrayType

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
using ArrayType = uint16_t

◆ BuildType

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
using BuildType = Point

◆ FloatType

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
using FloatType = typename FloatTraits<ValueType>::FloatType

◆ ValueType

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
using ValueType = uint64_t

Constructor & Destructor Documentation

◆ LeafData() [1/2]

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
LeafData ( )
delete

This class cannot be constructed or deleted.

◆ LeafData() [2/2]

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
LeafData ( const LeafData< Point, CoordT, MaskT, LOG2DIM > & )
delete

◆ ~LeafData()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
~LeafData ( )
delete

Member Function Documentation

◆ first()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ uint64_t first ( uint32_t i) const
inline

◆ getAvg()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ FloatType getAvg ( ) const
inline

◆ getDev()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ FloatType getDev ( ) const
inline

◆ getMax()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ ValueType getMax ( ) const
inline

◆ getMin()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ ValueType getMin ( ) const
inline

◆ getValue()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ uint64_t getValue ( uint32_t i) const
inline

◆ last()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ uint64_t last ( uint32_t i) const
inline

◆ memUsage()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
static __hostdev__ uint64_t memUsage ( )
inlinestatic

◆ offset()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ uint64_t offset ( ) const
inline

◆ operator=()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
LeafData & operator= ( const LeafData< Point, CoordT, MaskT, LOG2DIM > & )
delete

◆ padding()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
static __hostdev__ constexpr uint32_t padding ( )
inlinestaticconstexpr

Return padding of this class in bytes, due to aliasing and 32B alignment.

Note
The extra bytes are not necessarily at the end, but can come from aliasing of individual data members.

◆ pointCount()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ uint64_t pointCount ( ) const
inline

◆ setAvg()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ void setAvg ( const FloatType & )
inline

◆ setDev()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ void setDev ( const FloatType & )
inline

◆ setMax()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ void setMax ( const ValueType & )
inline

◆ setMin()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ void setMin ( const ValueType & )
inline

◆ setOn()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ void setOn ( uint32_t offset)
inline

◆ setOrigin()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
template<typename T >
__hostdev__ void setOrigin ( const T & ijk)
inline

◆ setValue()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ void setValue ( uint32_t offset,
uint16_t value )
inline

◆ setValueOnly()

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
__hostdev__ void setValueOnly ( uint32_t offset,
uint16_t value )
inline

Member Data Documentation

◆ FIXED_SIZE

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
bool FIXED_SIZE = true
staticconstexpr

◆ mBBoxDif

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
uint8_t mBBoxDif[3]

◆ mBBoxMin

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
CoordT mBBoxMin

◆ mFlags

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
uint8_t mFlags

◆ mOffset

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
uint64_t mOffset

◆ mPointCount

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
uint64_t mPointCount

◆ mValueMask

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
MaskT<LOG2DIM> mValueMask

◆ mValues

template<typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
uint16_t mValues[1u<< 3 *LOG2DIM]