Mesh Oriented datABase  (version 5.5.0)
An array-based unstructured mesh library
moab::OrientedBoxTreeTool::Op Class Referenceabstract

Implement this and pass instance to preorder_traverse. More...

#include <OrientedBoxTreeTool.hpp>

+ Inheritance diagram for moab::OrientedBoxTreeTool::Op:

Public Member Functions

virtual ErrorCode visit (EntityHandle node, int depth, bool &descend)=0
 Visit a node in the tree during a traversal. More...
 
virtual ErrorCode leaf (EntityHandle node)=0
 Process a leaf node during tree traversal. More...
 
virtual ~Op ()
 

Detailed Description

Implement this and pass instance to preorder_traverse.

This interface may be implemented and an instance passed to preorder_traverse to define some operation to do when traversing the tree.

Definition at line 492 of file OrientedBoxTreeTool.hpp.

Constructor & Destructor Documentation

◆ ~Op()

moab::OrientedBoxTreeTool::Op::~Op ( )
virtual

Definition at line 47 of file OrientedBoxTreeTool.cpp.

47 {}

Member Function Documentation

◆ leaf()

virtual ErrorCode moab::OrientedBoxTreeTool::Op::leaf ( EntityHandle  node)
pure virtual

◆ visit()

virtual ErrorCode moab::OrientedBoxTreeTool::Op::visit ( EntityHandle  node,
int  depth,
bool &  descend 
)
pure virtual

Visit a node in the tree during a traversal.

This method is called for each node in the tree visited during a pre-order traversal.

Parameters
nodeThe EntityHandle for the entity set for the tree node.
depthThe current depth in the tree.
descendOutput: if false, traversal will skip children of the current node, or if the current node is a leaf, the 'leaf' method will not be called.

Implemented in TriStats, TriCounter, moab::TreeNodePrinter, moab::TreeLayoutPrinter, moab::RayIntersectSets, and moab::RayIntersector.

Referenced by moab::OrientedBoxTreeTool::preorder_traverse().


The documentation for this class was generated from the following files: