OpenVDB 12.0.0
 
Loading...
Searching...
No Matches
TreeAdapter< _TreeType > Struct Template Reference

This adapter allows code that is templated on a Tree type to accept either a Tree type or a Grid type. More...

#include <openvdb/Grid.h>

Public Types

using TreeType = _TreeType
 
using NonConstTreeType = typename std::remove_const<TreeType>::type
 
using TreePtrType = typename TreeType::Ptr
 
using ConstTreePtrType = typename TreeType::ConstPtr
 
using NonConstTreePtrType = typename NonConstTreeType::Ptr
 
using GridType = Grid<NonConstTreeType>
 
using NonConstGridType = Grid<NonConstTreeType>
 
using GridPtrType = typename GridType::Ptr
 
using NonConstGridPtrType = typename NonConstGridType::Ptr
 
using ConstGridPtrType = typename GridType::ConstPtr
 
using ValueType = typename TreeType::ValueType
 
using AccessorType = typename tree::ValueAccessor<TreeType>
 
using ConstAccessorType = typename tree::ValueAccessor<const TreeType>
 
using NonConstAccessorType = typename tree::ValueAccessor<NonConstTreeType>
 

Static Public Member Functions

static NonConstTreeTypetree (NonConstTreeType &t)
 
static NonConstTreeTypetree (NonConstGridType &g)
 
static const NonConstTreeTypetree (const NonConstTreeType &t)
 
static const NonConstTreeTypetree (const NonConstGridType &g)
 
static const NonConstTreeTypeconstTree (NonConstTreeType &t)
 
static const NonConstTreeTypeconstTree (NonConstGridType &g)
 
static const NonConstTreeTypeconstTree (const NonConstTreeType &t)
 
static const NonConstTreeTypeconstTree (const NonConstGridType &g)
 

Detailed Description

template<typename _TreeType>
struct openvdb::v12_0::TreeAdapter< _TreeType >

This adapter allows code that is templated on a Tree type to accept either a Tree type or a Grid type.

Member Typedef Documentation

◆ AccessorType

template<typename _TreeType>
using AccessorType = typename tree::ValueAccessor<TreeType>

◆ ConstAccessorType

template<typename _TreeType>
using ConstAccessorType = typename tree::ValueAccessor<const TreeType>

◆ ConstGridPtrType

template<typename _TreeType>
using ConstGridPtrType = typename GridType::ConstPtr

◆ ConstTreePtrType

template<typename _TreeType>
using ConstTreePtrType = typename TreeType::ConstPtr

◆ GridPtrType

template<typename _TreeType>
using GridPtrType = typename GridType::Ptr

◆ GridType

template<typename _TreeType>
using GridType = Grid<NonConstTreeType>

◆ NonConstAccessorType

template<typename _TreeType>
using NonConstAccessorType = typename tree::ValueAccessor<NonConstTreeType>

◆ NonConstGridPtrType

template<typename _TreeType>
using NonConstGridPtrType = typename NonConstGridType::Ptr

◆ NonConstGridType

template<typename _TreeType>
using NonConstGridType = Grid<NonConstTreeType>

◆ NonConstTreePtrType

template<typename _TreeType>
using NonConstTreePtrType = typename NonConstTreeType::Ptr

◆ NonConstTreeType

template<typename _TreeType>
using NonConstTreeType = typename std::remove_const<TreeType>::type

◆ TreePtrType

template<typename _TreeType>
using TreePtrType = typename TreeType::Ptr

◆ TreeType

template<typename _TreeType>
using TreeType = _TreeType

◆ ValueType

template<typename _TreeType>
using ValueType = typename TreeType::ValueType

Member Function Documentation

◆ constTree() [1/4]

template<typename _TreeType>
static const NonConstTreeType & constTree ( const NonConstGridType & g)
inlinestatic

◆ constTree() [2/4]

template<typename _TreeType>
static const NonConstTreeType & constTree ( const NonConstTreeType & t)
inlinestatic

◆ constTree() [3/4]

template<typename _TreeType>
static const NonConstTreeType & constTree ( NonConstGridType & g)
inlinestatic

◆ constTree() [4/4]

template<typename _TreeType>
static const NonConstTreeType & constTree ( NonConstTreeType & t)
inlinestatic

◆ tree() [1/4]

template<typename _TreeType>
static const NonConstTreeType & tree ( const NonConstGridType & g)
inlinestatic

◆ tree() [2/4]

template<typename _TreeType>
static const NonConstTreeType & tree ( const NonConstTreeType & t)
inlinestatic

◆ tree() [3/4]

template<typename _TreeType>
static NonConstTreeType & tree ( NonConstGridType & g)
inlinestatic

◆ tree() [4/4]

template<typename _TreeType>
static NonConstTreeType & tree ( NonConstTreeType & t)
inlinestatic