15 #ifndef OPENVDB_TOOLS_NODE_VISITOR_HAS_BEEN_INCLUDED
16 #define OPENVDB_TOOLS_NODE_VISITOR_HAS_BEEN_INCLUDED
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
#define OPENVDB_USE_VERSION_NAMESPACE
typename std::remove_const< ToType >::type Type
Library and file format version numbers.
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.