OpenVDB  12.0.0
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
ReadAccessor< BuildT, LEVEL0,-1,-1 > Class Template Reference

Node caching at a single tree level. More...

#include <nanovdb/NanoVDB.h>

Public Types

using BuildType = BuildT
 
using ValueType = ValueT
 
using CoordType = CoordT
 

Public Member Functions

__hostdev__ ReadAccessor (const RootT &root)
 Constructor from a root node. More...
 
__hostdev__ ReadAccessor (const GridT &grid)
 Constructor from a grid. More...
 
__hostdev__ ReadAccessor (const TreeT &tree)
 Constructor from a tree. More...
 
__hostdev__ void clear ()
 Reset this access to its initial state, i.e. with an empty cache. More...
 
__hostdev__ const RootTroot () const
 
 ReadAccessor (const ReadAccessor &)=default
 Defaults constructors. More...
 
 ~ReadAccessor ()=default
 
ReadAccessoroperator= (const ReadAccessor &)=default
 
__hostdev__ bool isCached (const CoordType &ijk) const
 
__hostdev__ ValueType getValue (const CoordType &ijk) const
 
__hostdev__ ValueType getValue (int i, int j, int k) const
 
__hostdev__ ValueType operator() (const CoordType &ijk) const
 
__hostdev__ ValueType operator() (int i, int j, int k) const
 
__hostdev__ auto getNodeInfo (const CoordType &ijk) const
 
__hostdev__ bool isActive (const CoordType &ijk) const
 
__hostdev__ bool probeValue (const CoordType &ijk, ValueType &v) const
 
__hostdev__ const LeafTprobeLeaf (const CoordType &ijk) const
 
template<typename RayT >
__hostdev__ uint32_t getDim (const CoordType &ijk, const RayT &ray) const
 
template<typename OpT , typename... ArgsT>
__hostdev__ auto get (const CoordType &ijk, ArgsT &&...args) const
 
template<typename OpT , typename... ArgsT>
__hostdev__ auto set (const CoordType &ijk, ArgsT &&...args) const
 

Static Public Attributes

static const int CacheLevels = 1
 

Friends

template<typename >
class RootNode
 Allow nodes to insert themselves into the cache. More...
 
template<typename , uint32_t >
class InternalNode
 
template<typename , typename , template< uint32_t > class, uint32_t >
class LeafNode
 

Detailed Description

template<typename BuildT, int LEVEL0>
class nanovdb::ReadAccessor< BuildT, LEVEL0,-1,-1 >

Node caching at a single tree level.

Member Typedef Documentation

using BuildType = BuildT
using CoordType = CoordT
using ValueType = ValueT

Constructor & Destructor Documentation

__hostdev__ ReadAccessor ( const RootT root)
inline

Constructor from a root node.

__hostdev__ ReadAccessor ( const GridT grid)
inline

Constructor from a grid.

__hostdev__ ReadAccessor ( const TreeT tree)
inline

Constructor from a tree.

ReadAccessor ( const ReadAccessor< BuildT, LEVEL0,-1,-1 > &  )
default

Defaults constructors.

~ReadAccessor ( )
default

Member Function Documentation

__hostdev__ void clear ( )
inline

Reset this access to its initial state, i.e. with an empty cache.

__hostdev__ auto get ( const CoordType ijk,
ArgsT &&...  args 
) const
inline
__hostdev__ uint32_t getDim ( const CoordType ijk,
const RayT &  ray 
) const
inline
__hostdev__ auto getNodeInfo ( const CoordType ijk) const
inline
__hostdev__ ValueType getValue ( const CoordType ijk) const
inline
__hostdev__ ValueType getValue ( int  i,
int  j,
int  k 
) const
inline
__hostdev__ bool isActive ( const CoordType ijk) const
inline
__hostdev__ bool isCached ( const CoordType ijk) const
inline
__hostdev__ ValueType operator() ( const CoordType ijk) const
inline
__hostdev__ ValueType operator() ( int  i,
int  j,
int  k 
) const
inline
ReadAccessor& operator= ( const ReadAccessor< BuildT, LEVEL0,-1,-1 > &  )
default
__hostdev__ const LeafT* probeLeaf ( const CoordType ijk) const
inline
__hostdev__ bool probeValue ( const CoordType ijk,
ValueType v 
) const
inline
__hostdev__ const RootT& root ( ) const
inline
__hostdev__ auto set ( const CoordType ijk,
ArgsT &&...  args 
) const
inline

Friends And Related Function Documentation

friend class InternalNode
friend
friend class LeafNode
friend
friend class RootNode
friend

Allow nodes to insert themselves into the cache.

Member Data Documentation

const int CacheLevels = 1
static