OpenVDB 13.1.0
Loading...
Searching...
No Matches
HandleFactory Struct Reference

The one gateway for constructing a GridHandle from a buffer plus metadata that is already known to be valid – adopted from another handle, whose own construction from raw bytes did the validation. More...

#include <nanovdb/cuda/HandleStorage.h>

Static Public Member Functions

template<typename BufferT>
static GridHandle< BufferT > make (BufferT &&buffer, std::vector< GridHandleMetaData > meta)
template<typename BufferT>
static const std::vector< GridHandleMetaData > & meta (const GridHandle< BufferT > &handle)

Detailed Description

The one gateway for constructing a GridHandle from a buffer plus metadata that is already known to be valid – adopted from another handle, whose own construction from raw bytes did the validation.

Member Function Documentation

◆ make()

template<typename BufferT>
GridHandle< BufferT > make ( BufferT && buffer,
std::vector< GridHandleMetaData > meta )
inlinestatic

◆ meta()

template<typename BufferT>
const std::vector< GridHandleMetaData > & meta ( const GridHandle< BufferT > & handle)
inlinestatic