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:

## 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

## ~TreeVisitor()

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

inline virtual

Destructor.

## Member Function Documentation

## handle() [1/2]

virtual bool SurgSim::DataStructures::TreeVisitor::handle | ( | TreeNode * | node | ) |

pure virtual

Handle TreeNode basic type.

Parameters

  node | Node 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.

## handle() [2/2]

virtual bool SurgSim::DataStructures::TreeVisitor::handle | ( | AabbTreeNode * | node | ) |

inline virtual

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

Parameters

  node | Node 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:

- SurgSim/DataStructures/TreeVisitor.h