OpenVDB  9.0.1
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 ValueType = ValueT
 
using CoordType = CoordT
 
using NodeInfo = typename ReadAccessor< ValueT,-1,-1,-1 >::NodeInfo
 

Public Member Functions

 ReadAccessor (const RootT &root)
 Constructor from a root node. More...
 
const RootTroot () const
 
 ReadAccessor (const ReadAccessor &)=default
 Defaults constructors. More...
 
 ~ReadAccessor ()=default
 
ReadAccessoroperator= (const ReadAccessor &)=default
 
bool isCached (const CoordType &ijk) const
 
ValueType getValue (const CoordType &ijk) const
 
NodeInfo getNodeInfo (const CoordType &ijk) const
 
bool isActive (const CoordType &ijk) const
 
bool probeValue (const CoordType &ijk, ValueType &v) const
 
const LeafTprobeLeaf (const CoordType &ijk) const
 
template<typename RayT >
uint32_t getDim (const CoordType &ijk, const RayT &ray) 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 CoordType = CoordT
using NodeInfo = typename ReadAccessor<ValueT, -1, -1, -1>::NodeInfo
using ValueType = ValueT

Constructor & Destructor Documentation

ReadAccessor ( const RootT root)
inline

Constructor from a root node.

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

Defaults constructors.

~ReadAccessor ( )
default

Member Function Documentation

uint32_t getDim ( const CoordType ijk,
const RayT &  ray 
) const
inline
NodeInfo getNodeInfo ( const CoordType ijk) const
inline
ValueType getValue ( const CoordType ijk) const
inline
bool isActive ( const CoordType ijk) const
inline
bool isCached ( const CoordType ijk) const
inline
ReadAccessor& operator= ( const ReadAccessor< BuildT, LEVEL0,-1,-1 > &  )
default
const LeafT* probeLeaf ( const CoordType ijk) const
inline
bool probeValue ( const CoordType ijk,
ValueType v 
) const
inline
const RootT& root ( ) 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