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

Visit all nodes that are downstream of a specific node in depth-first order and apply a user-supplied functor to each node. More...

#include <NodeVisitor.h>

Public Types

using NonConstChildType = typename NodeT::ChildNodeType
 
using ChildNodeType = typename CopyConstness< NodeT, NonConstChildType >::Type
 

Static Public Member Functions

template<typename OpT >
static size_t visit (NodeT &node, OpT &op, size_t idx=0)
 

Detailed Description

template<typename NodeT, Index LEVEL = NodeT::LEVEL>
struct openvdb::OPENVDB_VERSION_NAME::tools::DepthFirstNodeVisitor< NodeT, LEVEL >

Visit all nodes that are downstream of a specific node in depth-first order and apply a user-supplied functor to each node.

Note
This uses the same operator interface as documented in visitNodesDepthFirst().
The LEVEL template argument can be used to reduce the traversal depth. For example, calling visit() with a RootNode and using NodeT::LEVEL-1 would not visit leaf nodes.

Definition at line 189 of file NodeVisitor.h.

Member Typedef Documentation

template<typename NodeT , Index LEVEL = NodeT::LEVEL>
using openvdb::OPENVDB_VERSION_NAME::tools::DepthFirstNodeVisitor< NodeT, LEVEL >::ChildNodeType = typename CopyConstness<NodeT, NonConstChildType>::Type

Definition at line 199 of file NodeVisitor.h.

template<typename NodeT , Index LEVEL = NodeT::LEVEL>
using openvdb::OPENVDB_VERSION_NAME::tools::DepthFirstNodeVisitor< NodeT, LEVEL >::NonConstChildType = typename NodeT::ChildNodeType

Definition at line 198 of file NodeVisitor.h.

Member Function Documentation

template<typename NodeT , Index LEVEL = NodeT::LEVEL>
template<typename OpT >
static size_t openvdb::OPENVDB_VERSION_NAME::tools::DepthFirstNodeVisitor< NodeT, LEVEL >::visit ( NodeT &  node,
OpT &  op,
size_t  idx = 0 
)
inlinestatic

Definition at line 202 of file NodeVisitor.h.


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