All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
SurgSim::DataStructures::TreeVisitor Class Referenceabstract

Abstract Class for visitors, this needs to be extended for other tree nodes when necessary return false from handle() to abort traversal. More...

#include <SurgSim/DataStructures/TreeVisitor.h>

Inheritance diagram for SurgSim::DataStructures::TreeVisitor:
Inheritance graph
[legend]

Public Member Functions

virtual ~TreeVisitor ()
 Destructor. More...
 
virtual bool handle (TreeNode *node)=0
 Handle TreeNode basic type. More...
 
virtual bool handle (AabbTreeNode *node)
 Handle AabbTreeNode basic type, default body, override for specific work. More...
 

Detailed Description

Abstract Class for visitors, this needs to be extended for other tree nodes when necessary return false from handle() to abort traversal.

Constructor & Destructor Documentation

virtual SurgSim::DataStructures::TreeVisitor::~TreeVisitor ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual bool SurgSim::DataStructures::TreeVisitor::handle ( TreeNode node)
pure virtual

Handle TreeNode basic type.

Parameters
nodeNode to process.
Returns
true To indicates that the visitor wishes to continue traversal, false if the visitor wants to abort traversal.

Implemented in SurgSim::DataStructures::AabbTreeIntersectionVisitor.

virtual bool SurgSim::DataStructures::TreeVisitor::handle ( AabbTreeNode node)
inlinevirtual

Handle AabbTreeNode basic type, default body, override for specific work.

Parameters
nodeNode to process.
Returns
true to continue traversal, false to abort.

Reimplemented in SurgSim::DataStructures::AabbTreeIntersectionVisitor.


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