ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ppforest2::TreeNode::Visitor Class Reference

Visitor interface for tree node dispatch. More...

#include <TreeNode.hpp>

Public Member Functions

virtual ~Visitor ()=default
 
virtual void visit (TreeBranch const &)
 
virtual void visit (TreeLeaf const &)
 

Detailed Description

Visitor interface for tree node dispatch.

Implements the visitor pattern to distinguish between internal split nodes (TreeBranch) and leaf nodes (TreeLeaf). Both visit overloads default to no-op so visitors can override only the node type they care about.

Constructor & Destructor Documentation

◆ ~Visitor()

virtual ppforest2::TreeNode::Visitor::~Visitor ( )
virtualdefault

Member Function Documentation

◆ visit() [1/2]

◆ visit() [2/2]

virtual void ppforest2::TreeNode::Visitor::visit ( TreeLeaf const & )
inlinevirtual

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