HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::points::AccessorEval< CodecType, ValueType > Struct Template Reference

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

#include <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::OPENVDB_VERSION_NAME::points::AccessorEval< CodecType, ValueType >

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

Definition at line 1820 of file AttributeArray.h.

Member Typedef Documentation

template<typename CodecType , typename ValueType >
using openvdb::OPENVDB_VERSION_NAME::points::AccessorEval< CodecType, ValueType >::GetterPtr = ValueType (*)(const AttributeArray* array, const Index n)

Definition at line 1822 of file AttributeArray.h.

template<typename CodecType , typename ValueType >
using openvdb::OPENVDB_VERSION_NAME::points::AccessorEval< CodecType, ValueType >::SetterPtr = void (*)(AttributeArray* array, const Index n, const ValueType& value)

Definition at line 1823 of file AttributeArray.h.

Member Function Documentation

template<typename CodecType , typename ValueType >
static ValueType openvdb::OPENVDB_VERSION_NAME::points::AccessorEval< CodecType, 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

Definition at line 1827 of file AttributeArray.h.

template<typename CodecType , typename ValueType >
static void openvdb::OPENVDB_VERSION_NAME::points::AccessorEval< CodecType, ValueType >::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

Definition at line 1833 of file AttributeArray.h.


The documentation for this struct was generated from the following file: