OpenVDB  2.3.0
Public Types | List of all members
NodeChain< HeadType, HeadLevel > Struct Template Reference

NodeChain<RootNodeType, RootNodeType::LEVEL>::Type is a boost::mpl::vector that lists the types of the nodes of the tree rooted at RootNodeType in reverse order, from LeafNode to RootNode. More...

#include <RootNode.h>

Public Types

typedef NodeChain< typename
HeadT::ChildNodeType,
HeadLevel-1 >::Type 
SubtreeT
 
typedef boost::mpl::push_back
< SubtreeT, HeadT >::type 
Type
 

Detailed Description

template<typename HeadType, int HeadLevel>
struct openvdb::v2_3_0::tree::NodeChain< HeadType, HeadLevel >

NodeChain<RootNodeType, RootNodeType::LEVEL>::Type is a boost::mpl::vector that lists the types of the nodes of the tree rooted at RootNodeType in reverse order, from LeafNode to RootNode.

For example, if RootNodeType is

RootNode<InternalNode<InternalNode<LeafNode> > >

then NodeChain::Type is

boost::mpl::vector<
LeafNode,
InternalNode<LeafNode>,
InternalNode<InternalNode<LeafNode> >,
RootNode<InternalNode<InternalNode<LeafNode> > > >
Note
Use the following to get the Nth node type, where N=0 is the LeafNodeType:
boost::mpl::at<NodeChainType, boost::mpl::int_<N> >::type

Member Typedef Documentation

typedef NodeChain<typename HeadT::ChildNodeType, HeadLevel-1>::Type SubtreeT
typedef boost::mpl::push_back<SubtreeT, HeadT>::type Type

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