GTSAM
4.0.2
C++ library for smoothing and mapping (SAM)
|
#include <DecisionTree-inl.h>
Public Types | |
using | F = std::function< void(const Assignment< L > &, const Y &)> |
Public Member Functions | |
VisitWith (F f) | |
Construct from folding function. | |
void | operator() (const typename DecisionTree< L, Y >::NodePtr &node) |
Do a depth-first visit on the tree rooted at node. | |
Public Attributes | |
Assignment< L > | assignment |
Assignment, mutating through recursion. | |
F | f |
folding function object. | |
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
.