OpenVDB  12.0.0
Public Types | Static Public Member Functions | List of all members
AccessorEval< CodecType, ValueType > Struct Template Reference

Accessor to call unsafe get and set methods based on templated Codec and Value. More...

#include <openvdb/points/AttributeArray.h>

Public Types

using GetterPtr = ValueType(*)(const AttributeArray *array, const Index n)
 
using SetterPtr = void(*)(AttributeArray *array, const Index n, const ValueType &value)
 

Static Public Member Functions

static ValueType get (GetterPtr, const AttributeArray *array, const Index n)
 
static void set (SetterPtr, AttributeArray *array, const Index n, const ValueType &value)
 

Detailed Description

template<typename CodecType, typename ValueType>
struct openvdb::v12_0::points::AccessorEval< CodecType, ValueType >

Accessor to call unsafe get and set methods based on templated Codec and Value.

Member Typedef Documentation

using GetterPtr = ValueType (*)(const AttributeArray* array, const Index n)
using SetterPtr = void (*)(AttributeArray* array, const Index n, const ValueType& value)

Member Function Documentation

static ValueType get ( GetterPtr  ,
const AttributeArray array,
const Index  n 
)
inlinestatic

Getter that calls to TypedAttributeArray::getUnsafe()

Note
Functor argument is provided but not required for the generic case
static void set ( SetterPtr  ,
AttributeArray array,
const Index  n,
const ValueType &  value 
)
inlinestatic

Getter that calls to TypedAttributeArray::setUnsafe()

Note
Functor argument is provided but not required for the generic case