#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< 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 892 of file DecisionTree-inl.h.
| using gtsam::VisitWith< L, Y >::F = std::function<void(const Assignment<L>&, const Y&)> |
Definition at line 893 of file DecisionTree-inl.h.
|
inline |
Do a depth-first visit on the tree rooted at node.
Definition at line 899 of file DecisionTree-inl.h.
| Assignment<L> gtsam::VisitWith< L, Y >::assignment |
Assignment, mutating through recursion.
Definition at line 895 of file DecisionTree-inl.h.
| F gtsam::VisitWith< L, Y >::f |
folding function object.
Definition at line 896 of file DecisionTree-inl.h.