GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
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

 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
 folding function object.
 

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.


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