15 #ifndef OPENVDB_TOOLS_NODE_VISITOR_HAS_BEEN_INCLUDED 16 #define OPENVDB_TOOLS_NODE_VISITOR_HAS_BEEN_INCLUDED 18 #include <openvdb/version.h> 175 template <
typename TreeT,
typename OpT>
188 template <
typename NodeT, Index LEVEL = NodeT::LEVEL>
195 template <
typename NodeT, Index LEVEL>
201 template <
typename OpT>
202 static size_t visit(NodeT& node, OpT& op,
size_t idx = 0)
205 op(node, idx + offset++);
206 for (
auto iter = node.beginChildOn(); iter; ++iter) {
208 *iter, op, idx + offset);
216 template <
typename NodeT>
219 template <
typename OpT>
220 static size_t visit(NodeT& node, OpT& op,
size_t idx = 0)
228 template <
typename TreeT,
typename OpT>
231 using NonConstRootNodeType =
typename TreeT::RootNodeType;
242 #endif // OPENVDB_TOOLS_NODE_VISITOR_HAS_BEEN_INCLUDED
Definition: Exceptions.h:13
typename std::remove_const< ToType >::type Type
Definition: Types.h:400
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h.in:116
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h.in:202