Public Types | Public Member Functions | Public Attributes | List of all members
gtsam::VisitWith< L, Y > Struct Template Reference

#include <DecisionTree-inl.h>

Public Types

using F = std::function< void(const Assignment< L > &, const Y &)>
 

Public Member Functions

void operator() (const typename DecisionTree< L, Y >::NodePtr &node)
 Do a depth-first visit on the tree rooted at node. More...
 

Public Attributes

Assignment< Lassignment
 Assignment, mutating through recursion. More...
 
F f
 folding function object. More...
 

Detailed Description

template<typename L, typename Y>
struct gtsam::VisitWith< L, Y >

Functor performing depth-first visit to each leaf with the leaf's Assignment<L> and value passed as arguments.

NOTE: Follows the same pruning semantics as visit.

Definition at line 818 of file DecisionTree-inl.h.

Member Typedef Documentation

◆ F

template<typename L , typename Y >
using gtsam::VisitWith< L, Y >::F = std::function<void(const Assignment<L>&, const Y&)>

Definition at line 819 of file DecisionTree-inl.h.

Member Function Documentation

◆ operator()()

template<typename L , typename Y >
void gtsam::VisitWith< L, Y >::operator() ( const typename DecisionTree< L, Y >::NodePtr &  node)
inline

Do a depth-first visit on the tree rooted at node.

Definition at line 825 of file DecisionTree-inl.h.

Member Data Documentation

◆ assignment

template<typename L , typename Y >
Assignment<L> gtsam::VisitWith< L, Y >::assignment

Assignment, mutating through recursion.

Definition at line 821 of file DecisionTree-inl.h.

◆ f

template<typename L , typename Y >
F gtsam::VisitWith< L, Y >::f

folding function object.

Definition at line 822 of file DecisionTree-inl.h.


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


gtsam
Author(s):
autogenerated on Thu Jun 13 2024 03:18:12