48 template <
class NodeType>
81 root_.serialize(stream);
91 root_.deserialize(stream);
Class representing a decision tree.
virtual ~DecisionTree()=default
Destructor.
NodeType & getRoot()
Returns the root node of the tree.
void serialize(::std::ostream &stream) const
Serializes the decision tree.
DecisionTree()
Constructor.
void setRoot(const NodeType &root)
Sets the root node of the tree.
void deserialize(::std::istream &stream)
Deserializes the decision tree.
Define standard C methods and C++ classes that are common to all methods.