HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::build::Tree< BuildT > Struct Template Reference

#include <GridBuilder.h>

+ Inheritance diagram for nanovdb::build::Tree< BuildT >:

Classes

struct  WriteAccessor
 

Public Types

using ValueType = typename BuildToValueMap< BuildT >::type
 
using Node0 = build::LeafNode< BuildT >
 
using Node1 = build::InternalNode< Node0 >
 
using Node2 = build::InternalNode< Node1 >
 
using RootNodeType = build::RootNode< Node2 >
 
using LeafNodeType = typename RootNodeType::LeafNodeType
 

Public Member Functions

 Tree (const ValueType &background)
 
 Tree (const Tree &)=delete
 
 Tree (Tree &&)=delete
 
Treetree ()
 
RootNodeTyperoot ()
 
ValueType getValue (const Coord &ijk) const
 
ValueType getValue (int i, int j, int k) const
 
void setValue (const Coord &ijk, const ValueType &value)
 
std::array< size_t, 3 > nodeCount () const
 
ValueAccessor< BuildT > getAccessor ()
 regular accessor for thread-safe reading and non-thread-safe writing More...
 
WriteAccessor getWriteAccessor ()
 special accessor for thread-safe writing only More...
 

Public Attributes

RootNodeType mRoot
 
std::mutex mMutex
 

Detailed Description

template<typename BuildT>
struct nanovdb::build::Tree< BuildT >

Definition at line 1811 of file GridBuilder.h.

Member Typedef Documentation

template<typename BuildT >
using nanovdb::build::Tree< BuildT >::LeafNodeType = typename RootNodeType::LeafNodeType

Definition at line 1818 of file GridBuilder.h.

template<typename BuildT >
using nanovdb::build::Tree< BuildT >::Node0 = build::LeafNode<BuildT>

Definition at line 1814 of file GridBuilder.h.

template<typename BuildT >
using nanovdb::build::Tree< BuildT >::Node1 = build::InternalNode<Node0>

Definition at line 1815 of file GridBuilder.h.

template<typename BuildT >
using nanovdb::build::Tree< BuildT >::Node2 = build::InternalNode<Node1>

Definition at line 1816 of file GridBuilder.h.

template<typename BuildT >
using nanovdb::build::Tree< BuildT >::RootNodeType = build::RootNode<Node2>

Definition at line 1817 of file GridBuilder.h.

template<typename BuildT >
using nanovdb::build::Tree< BuildT >::ValueType = typename BuildToValueMap<BuildT>::type

Definition at line 1813 of file GridBuilder.h.

Constructor & Destructor Documentation

template<typename BuildT >
nanovdb::build::Tree< BuildT >::Tree ( const ValueType background)
inline

Definition at line 1824 of file GridBuilder.h.

template<typename BuildT >
nanovdb::build::Tree< BuildT >::Tree ( const Tree< BuildT > &  )
delete
template<typename BuildT >
nanovdb::build::Tree< BuildT >::Tree ( Tree< BuildT > &&  )
delete

Member Function Documentation

template<typename BuildT >
ValueAccessor<BuildT> nanovdb::build::Tree< BuildT >::getAccessor ( )
inline

regular accessor for thread-safe reading and non-thread-safe writing

Definition at line 1839 of file GridBuilder.h.

template<typename BuildT >
ValueType nanovdb::build::Tree< BuildT >::getValue ( const Coord ijk) const
inline

Definition at line 1829 of file GridBuilder.h.

template<typename BuildT >
ValueType nanovdb::build::Tree< BuildT >::getValue ( int  i,
int  j,
int  k 
) const
inline

Definition at line 1830 of file GridBuilder.h.

template<typename BuildT >
WriteAccessor nanovdb::build::Tree< BuildT >::getWriteAccessor ( )
inline

special accessor for thread-safe writing only

Definition at line 1841 of file GridBuilder.h.

template<typename BuildT >
std::array<size_t,3> nanovdb::build::Tree< BuildT >::nodeCount ( ) const
inline

Definition at line 1832 of file GridBuilder.h.

template<typename BuildT >
RootNodeType& nanovdb::build::Tree< BuildT >::root ( )
inline

Definition at line 1828 of file GridBuilder.h.

template<typename BuildT >
void nanovdb::build::Tree< BuildT >::setValue ( const Coord ijk,
const ValueType value 
)
inline

Definition at line 1831 of file GridBuilder.h.

template<typename BuildT >
Tree& nanovdb::build::Tree< BuildT >::tree ( )
inline

Definition at line 1827 of file GridBuilder.h.

Member Data Documentation

template<typename BuildT >
std::mutex nanovdb::build::Tree< BuildT >::mMutex

Definition at line 1822 of file GridBuilder.h.

template<typename BuildT >
RootNodeType nanovdb::build::Tree< BuildT >::mRoot

Definition at line 1819 of file GridBuilder.h.


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