#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... | |
VisitWith (F f) | |
Construct from folding function. More... | |
Public Attributes | |
Assignment< L > | assignment |
Assignment, mutating through recursion. More... | |
F | f |
folding function object. More... | |
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 787 of file DecisionTree-inl.h.
using gtsam::VisitWith< L, Y >::F = std::function<void(const Assignment<L>&, const Y&)> |
Definition at line 788 of file DecisionTree-inl.h.
|
inlineexplicit |
Construct from folding function.
Definition at line 789 of file DecisionTree-inl.h.
|
inline |
Do a depth-first visit on the tree rooted at node.
Definition at line 794 of file DecisionTree-inl.h.
Assignment<L> gtsam::VisitWith< L, Y >::assignment |
Assignment, mutating through recursion.
Definition at line 790 of file DecisionTree-inl.h.
F gtsam::VisitWith< L, Y >::f |
folding function object.
Definition at line 791 of file DecisionTree-inl.h.