HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tree::IterTraits< NodeT, IterT > Struct Template Reference

#include <TreeIterator.h>

Static Public Member Functions

template<typename ChildT >
static ChildT * getChild (const IterT &)
 

Detailed Description

template<typename NodeT, typename IterT>
struct openvdb::OPENVDB_VERSION_NAME::tree::IterTraits< NodeT, IterT >

IterTraits provides the following for iterators of the standard types, i.e., for {Child,Value}{On,Off,All}{Iter,CIter}:

  • a NodeConverter template to convert an iterator for one type of node to an iterator of the same type for another type of node; for example, IterTraits<RootNode, RootNode::ValueOnIter>::NodeConverter<LeafNode>::Type is synonymous with LeafNode::ValueOnIter.
  • a begin(node) function that returns a begin iterator for a node of arbitrary type; for example, IterTraits<LeafNode, LeafNode::ValueOnIter>::begin(leaf) returns leaf.beginValueOn()
  • a getChild() function that returns a pointer to the child node to which the iterator is currently pointing (always null if the iterator is a Value iterator)

Definition at line 108 of file TreeIterator.h.

Member Function Documentation

template<typename NodeT, typename IterT>
template<typename ChildT >
static ChildT* openvdb::OPENVDB_VERSION_NAME::tree::IterTraits< NodeT, IterT >::getChild ( const IterT &  )
inlinestatic

Definition at line 110 of file TreeIterator.h.


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