11 #ifndef TREEMACHINENODE_H__
12 #define TREEMACHINENODE_H__
28 :m_left(NULL), m_right(NULL), m_parent(NULL), m_machine(-1)
45 virtual const char*
get_name()
const {
return "TreeMachineNode"; }
115 debug_print_impl(data_print_func,
this, 0);
127 for (int32_t i=0; i < depth; ++i)
129 data_print_func(node->
data);
131 debug_print_impl(data_print_func, node->
left(), depth+1);
133 debug_print_impl(data_print_func, node->
right(), depth+1);
void parent(CTreeMachineNode *par)
void left(CTreeMachineNode *l)
void machine(int32_t idx)
void(* data_print_func_t)(const T &)
virtual ~CTreeMachineNode()
Class SGObject is the base class of all shogun objects.
CTreeMachineNode * parent()
void debug_print(data_print_func_t data_print_func)
void right(CTreeMachineNode *r)
CTreeMachineNode * left()
all of classes and functions are contained in the shogun namespace
virtual const char * get_name() const
CTreeMachineNode * right()