Blender V5.0
nanovdb::CachedReadAccessor< BuildT > Class Template Reference

#include <nanovdb.h>

Public Types

using ValueType = typename RootT::ValueType

Public Member Functions

ccl_device_inline_method CachedReadAccessor (const ccl_global RootT &root)
template<typename NodeT>
ccl_device_inline_method bool isCached (const Coord ijk) const
ccl_device_inline_method ValueType getValueAndCache (const ccl_global RootT &node, const Coord ijk) const
ccl_device_inline_method ValueType getValueAndCache (const ccl_global LeafT &node, const Coord ijk) const
template<typename NodeT>
ccl_device_inline_method ValueType getValueAndCache (const ccl_global NodeT &node, const Coord ijk) const
ccl_device_inline_method ValueType getValue (const Coord ijk) const
template<typename NodeT>
ccl_device_inline_method void insert (const Coord ijk, const ccl_global NodeT *node) const

Detailed Description

template<typename BuildT>
class nanovdb::CachedReadAccessor< BuildT >

Definition at line 357 of file kernel/util/nanovdb.h.

Member Typedef Documentation

◆ ValueType

template<typename BuildT>
using nanovdb::CachedReadAccessor< BuildT >::ValueType = typename RootT::ValueType

Definition at line 368 of file kernel/util/nanovdb.h.

Constructor & Destructor Documentation

◆ CachedReadAccessor()

template<typename BuildT>
ccl_device_inline_method nanovdb::CachedReadAccessor< BuildT >::CachedReadAccessor ( const ccl_global RootT & root)
inline

Definition at line 370 of file kernel/util/nanovdb.h.

References ccl_device_inline_method, and ccl_global.

Member Function Documentation

◆ getValue()

template<typename BuildT>
ccl_device_inline_method ValueType nanovdb::CachedReadAccessor< BuildT >::getValue ( const Coord ijk) const
inline

◆ getValueAndCache() [1/3]

template<typename BuildT>
ccl_device_inline_method ValueType nanovdb::CachedReadAccessor< BuildT >::getValueAndCache ( const ccl_global LeafT & node,
const Coord ijk ) const
inline

Definition at line 393 of file kernel/util/nanovdb.h.

References ccl_device_inline_method, and ccl_global.

◆ getValueAndCache() [2/3]

template<typename BuildT>
template<typename NodeT>
ccl_device_inline_method ValueType nanovdb::CachedReadAccessor< BuildT >::getValueAndCache ( const ccl_global NodeT & node,
const Coord ijk ) const
inline

◆ getValueAndCache() [3/3]

template<typename BuildT>
ccl_device_inline_method ValueType nanovdb::CachedReadAccessor< BuildT >::getValueAndCache ( const ccl_global RootT & node,
const Coord ijk ) const
inline

◆ insert()

template<typename BuildT>
template<typename NodeT>
ccl_device_inline_method void nanovdb::CachedReadAccessor< BuildT >::insert ( const Coord ijk,
const ccl_global NodeT * node ) const
inline

Definition at line 427 of file kernel/util/nanovdb.h.

References ccl_device_inline_method, ccl_global, and MASK.

◆ isCached()

template<typename BuildT>
template<typename NodeT>
ccl_device_inline_method bool nanovdb::CachedReadAccessor< BuildT >::isCached ( const Coord ijk) const
inline

Definition at line 372 of file kernel/util/nanovdb.h.

References ccl_device_inline_method, int3::x, int3::y, y, and int3::z.

Referenced by getValue().


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