HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 > Class Template Reference

#include <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 isCached1 (const CoordType &ijk) const
 
__hostdev__ bool isCached2 (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 = 2
 

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, int LEVEL1>
class nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >

Definition at line 6850 of file NanoVDB.h.

Member Typedef Documentation

template<typename BuildT , int LEVEL0, int LEVEL1>
using nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::BuildType = BuildT

Definition at line 6877 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
using nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::CoordType = CoordT

Definition at line 6879 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
using nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::ValueType = ValueT

Definition at line 6878 of file NanoVDB.h.

Constructor & Destructor Documentation

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::ReadAccessor ( const RootT root)
inline

Constructor from a root node.

Definition at line 6886 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::ReadAccessor ( const GridT grid)
inline

Constructor from a grid.

Definition at line 6899 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::ReadAccessor ( const TreeT tree)
inline

Constructor from a tree.

Definition at line 6905 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::ReadAccessor ( const ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 > &  )
default

Defaults constructors.

template<typename BuildT , int LEVEL0, int LEVEL1>
nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::~ReadAccessor ( )
default

Member Function Documentation

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ void nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::clear ( )
inline

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

Definition at line 6911 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
template<typename OpT , typename... ArgsT>
__hostdev__ auto nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::get ( const CoordType ijk,
ArgsT &&...  args 
) const
inline

Definition at line 7087 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
template<typename RayT >
__hostdev__ uint32_t nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::getDim ( const CoordType ijk,
const RayT &  ray 
) const
inline

Definition at line 7071 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ auto nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::getNodeInfo ( const CoordType ijk) const
inline

Definition at line 6977 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ ValueType nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::getValue ( const CoordType ijk) const
inline

Definition at line 6970 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ ValueType nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::getValue ( int  i,
int  j,
int  k 
) const
inline

Definition at line 6974 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ bool nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::isActive ( const CoordType ijk) const
inline

Definition at line 6978 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ bool nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::isCached1 ( const CoordType ijk) const
inline

Definition at line 6955 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ bool nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::isCached2 ( const CoordType ijk) const
inline

Definition at line 6961 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ ValueType nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::operator() ( const CoordType ijk) const
inline

Definition at line 6975 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ ValueType nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::operator() ( int  i,
int  j,
int  k 
) const
inline

Definition at line 6976 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
ReadAccessor& nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::operator= ( const ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 > &  )
default
template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ const LeafT* nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::probeLeaf ( const CoordType ijk) const
inline

Definition at line 6980 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ bool nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::probeValue ( const CoordType ijk,
ValueType v 
) const
inline

Definition at line 6979 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
__hostdev__ const RootT& nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::root ( ) const
inline

Definition at line 6922 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
template<typename OpT , typename... ArgsT>
__hostdev__ auto nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::set ( const CoordType ijk,
ArgsT &&...  args 
) const
inline

Definition at line 7103 of file NanoVDB.h.

Friends And Related Function Documentation

template<typename BuildT , int LEVEL0, int LEVEL1>
template<typename , uint32_t >
friend class InternalNode
friend

Definition at line 7123 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
template<typename , typename , template< uint32_t > class, uint32_t >
friend class LeafNode
friend

Definition at line 7125 of file NanoVDB.h.

template<typename BuildT , int LEVEL0, int LEVEL1>
template<typename >
friend class RootNode
friend

Allow nodes to insert themselves into the cache.

Definition at line 7121 of file NanoVDB.h.

Member Data Documentation

template<typename BuildT , int LEVEL0, int LEVEL1>
const int nanovdb::ReadAccessor< BuildT, LEVEL0, LEVEL1,-1 >::CacheLevels = 2
static

Definition at line 6881 of file NanoVDB.h.


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