Blender V4.3
nanovdb::CachedReadAccessor< BuildT > Class Template Reference

#include <nanovdb.h>

Public Types

using ValueType = typename RootT::ValueType

Public Member Functions

ccl_device_inline_method CachedReadAccessor (ccl_global const RootT &root)
template<typename NodeT>
ccl_device_inline_method bool isCached (const Coord ijk) const
ccl_device_inline_method ValueType getValueAndCache (ccl_global const RootT &node, const Coord ijk) const
ccl_device_inline_method ValueType getValueAndCache (ccl_global const LeafT &node, const Coord ijk) const
template<typename NodeT>
ccl_device_inline_method ValueType getValueAndCache (ccl_global const 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, ccl_global const NodeT *node) const

Detailed Description

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

Definition at line 355 of file nanovdb.h.

Member Typedef Documentation

◆ ValueType

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

Definition at line 366 of file nanovdb.h.

Constructor & Destructor Documentation

◆ CachedReadAccessor()

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

Definition at line 368 of file 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

Definition at line 415 of file nanovdb.h.

References ccl_device_inline_method, ccl_global, getValueAndCache(), and isCached().

◆ getValueAndCache() [1/3]

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

Definition at line 396 of file 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 ( ccl_global const NodeT & node,
const Coord ijk ) const
inline

Definition at line 403 of file nanovdb.h.

References ccl_device_inline_method, ccl_global, getValueAndCache(), and insert().

◆ getValueAndCache() [3/3]

template<typename BuildT>
ccl_device_inline_method ValueType nanovdb::CachedReadAccessor< BuildT >::getValueAndCache ( ccl_global const 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,
ccl_global const NodeT * node ) const
inline

Definition at line 430 of file 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 375 of file nanovdb.h.

References ccl_device_inline_method, nanovdb::Coord::x, nanovdb::Coord::y, y, and nanovdb::Coord::z.

Referenced by getValue().


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