Public Types | Public Member Functions | List of all members
gtsam::DecisionTree< L, Y >::Node Struct Referenceabstract

#include <DecisionTree.h>

Inheritance diagram for gtsam::DecisionTree< L, Y >::Node:
Inheritance graph
[legend]

Public Types

using Ptr = std::shared_ptr< const Node >
 

Public Member Functions

virtual Ptr apply (const Unary &op) const =0
 
virtual Ptr apply (const UnaryAssignment &op, const Assignment< L > &assignment) const =0
 
virtual Ptr apply_f_op_g (const Node &, const Binary &) const =0
 
virtual Ptr apply_g_op_fC (const Choice &, const Binary &) const =0
 
virtual Ptr apply_g_op_fL (const Leaf &, const Binary &) const =0
 
virtual Ptr choose (const L &label, size_t index) const =0
 
virtual void dot (std::ostream &os, const LabelFormatter &labelFormatter, const ValueFormatter &valueFormatter, bool showZero) const =0
 
virtual bool equals (const Node &other, const CompareFunc &compare=&DefaultCompare) const =0
 
const void * id () const
 
virtual bool isLeaf () const =0
 
 Node ()
 
virtual const Yoperator() (const Assignment< L > &x) const =0
 
virtual void print (const std::string &s, const LabelFormatter &labelFormatter, const ValueFormatter &valueFormatter) const =0
 
virtual bool sameLeaf (const Leaf &q) const =0
 
virtual bool sameLeaf (const Node &q) const =0
 
virtual ~Node ()
 

Detailed Description

template<typename L, typename Y>
struct gtsam::DecisionTree< L, Y >::Node

---------------------— Node base class ------------------------—

Definition at line 74 of file DecisionTree.h.

Member Typedef Documentation

◆ Ptr

template<typename L, typename Y>
using gtsam::DecisionTree< L, Y >::Node::Ptr = std::shared_ptr<const Node>

Definition at line 75 of file DecisionTree.h.

Constructor & Destructor Documentation

◆ Node()

template<typename L, typename Y>
gtsam::DecisionTree< L, Y >::Node::Node ( )
inline

Definition at line 82 of file DecisionTree.h.

◆ ~Node()

template<typename L, typename Y>
virtual gtsam::DecisionTree< L, Y >::Node::~Node ( )
inlinevirtual

Definition at line 90 of file DecisionTree.h.

Member Function Documentation

◆ apply() [1/2]

template<typename L, typename Y>
virtual Ptr gtsam::DecisionTree< L, Y >::Node::apply ( const Unary op) const
pure virtual

◆ apply() [2/2]

template<typename L, typename Y>
virtual Ptr gtsam::DecisionTree< L, Y >::Node::apply ( const UnaryAssignment op,
const Assignment< L > &  assignment 
) const
pure virtual

◆ apply_f_op_g()

template<typename L, typename Y>
virtual Ptr gtsam::DecisionTree< L, Y >::Node::apply_f_op_g ( const Node ,
const Binary  
) const
pure virtual

◆ apply_g_op_fC()

template<typename L, typename Y>
virtual Ptr gtsam::DecisionTree< L, Y >::Node::apply_g_op_fC ( const Choice ,
const Binary  
) const
pure virtual

◆ apply_g_op_fL()

template<typename L, typename Y>
virtual Ptr gtsam::DecisionTree< L, Y >::Node::apply_g_op_fL ( const Leaf ,
const Binary  
) const
pure virtual

◆ choose()

template<typename L, typename Y>
virtual Ptr gtsam::DecisionTree< L, Y >::Node::choose ( const L label,
size_t  index 
) const
pure virtual

◆ dot()

template<typename L, typename Y>
virtual void gtsam::DecisionTree< L, Y >::Node::dot ( std::ostream &  os,
const LabelFormatter labelFormatter,
const ValueFormatter valueFormatter,
bool  showZero 
) const
pure virtual

◆ equals()

template<typename L, typename Y>
virtual bool gtsam::DecisionTree< L, Y >::Node::equals ( const Node other,
const CompareFunc compare = &DefaultCompare 
) const
pure virtual

◆ id()

template<typename L, typename Y>
const void* gtsam::DecisionTree< L, Y >::Node::id ( ) const
inline

Definition at line 98 of file DecisionTree.h.

◆ isLeaf()

template<typename L, typename Y>
virtual bool gtsam::DecisionTree< L, Y >::Node::isLeaf ( ) const
pure virtual

◆ operator()()

template<typename L, typename Y>
virtual const Y& gtsam::DecisionTree< L, Y >::Node::operator() ( const Assignment< L > &  x) const
pure virtual

◆ print()

template<typename L, typename Y>
virtual void gtsam::DecisionTree< L, Y >::Node::print ( const std::string &  s,
const LabelFormatter labelFormatter,
const ValueFormatter valueFormatter 
) const
pure virtual

◆ sameLeaf() [1/2]

template<typename L, typename Y>
virtual bool gtsam::DecisionTree< L, Y >::Node::sameLeaf ( const Leaf q) const
pure virtual

◆ sameLeaf() [2/2]

template<typename L, typename Y>
virtual bool gtsam::DecisionTree< L, Y >::Node::sameLeaf ( const Node q) const
pure virtual

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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:46:16