OpenVDB  6.0.0
Classes | Public Types | Public Member Functions | List of all members
AttributeHandles Struct Reference

Cache read and write attribute handles to amortize construction cost. More...

#include <PointMove.h>

Classes

struct  CacheHandleOp
 Create a handle and reinterpret cast as an int handle to store. More...
 

Public Types

using HandleArray = std::vector< AttributeHandle< int >::Ptr >
 

Public Member Functions

 AttributeHandles (const size_t size)
 
AttributeArraygetArray (const Index leafOffset)
 
const AttributeArraygetConstArray (const Index leafOffset) const
 
template<typename ValueT >
AttributeHandle< ValueT > & getHandle (const Index leafOffset)
 
template<typename ValueT >
AttributeWriteHandle< ValueT > & getWriteHandle (const Index leafOffset)
 
template<typename LeafRangeT >
void cache (const LeafRangeT &range, const Index attributeIndex)
 

Detailed Description

Cache read and write attribute handles to amortize construction cost.

Member Typedef Documentation

◆ HandleArray

using HandleArray = std::vector<AttributeHandle<int>::Ptr>

Constructor & Destructor Documentation

◆ AttributeHandles()

AttributeHandles ( const size_t  size)
inline

Member Function Documentation

◆ cache()

void cache ( const LeafRangeT &  range,
const Index  attributeIndex 
)
inline

◆ getArray()

AttributeArray& getArray ( const Index  leafOffset)
inline

◆ getConstArray()

const AttributeArray& getConstArray ( const Index  leafOffset) const
inline

◆ getHandle()

AttributeHandle<ValueT>& getHandle ( const Index  leafOffset)
inline

◆ getWriteHandle()

AttributeWriteHandle<ValueT>& getWriteHandle ( const Index  leafOffset)
inline

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