OpenVDB  9.0.1
Public Types | Static Public Member Functions | List of all members
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< TreeType >
 
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 TreeTypetree (TreeType &t)
 
static TreeTypetree (GridType &g)
 
static const TreeTypetree (const TreeType &t)
 
static const TreeTypetree (const GridType &g)
 
static const TreeTypeconstTree (TreeType &t)
 
static const TreeTypeconstTree (GridType &g)
 
static const TreeTypeconstTree (const TreeType &t)
 
static const TreeTypeconstTree (const GridType &g)
 

Detailed Description

template<typename _TreeType>
struct openvdb::v9_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

using ConstTreePtrType = typename TreeType::ConstPtr
using GridPtrType = typename GridType::Ptr
using NonConstTreePtrType = typename NonConstTreeType::Ptr
using NonConstTreeType = typename std::remove_const<TreeType>::type
using TreePtrType = typename TreeType::Ptr
using TreeType = _TreeType
using ValueType = typename TreeType::ValueType

Member Function Documentation

static const TreeType& constTree ( TreeType t)
inlinestatic
static const TreeType& constTree ( GridType g)
inlinestatic
static const TreeType& constTree ( const TreeType t)
inlinestatic
static const TreeType& constTree ( const GridType g)
inlinestatic
static TreeType& tree ( TreeType t)
inlinestatic
static TreeType& tree ( GridType g)
inlinestatic
static const TreeType& tree ( const TreeType t)
inlinestatic
static const TreeType& tree ( const GridType g)
inlinestatic