28 #ifndef ROOT_TMVA_Node 29 #define ROOT_TMVA_Node 50 std::ostream&
operator<<( std::ostream& os,
const Node& node );
51 std::ostream&
operator<<( std::ostream& os,
const Node* node );
100 virtual void Print( std::ostream& os )
const = 0;
103 virtual void PrintRec ( std::ostream& os )
const = 0;
virtual void PrintRec(std::ostream &os) const =0
void * AddXMLTo(void *parent) const
add attributes to XML
int GetCount()
returns the global number of instantiated nodes
#define TMVA_VERSION_CODE
virtual TMVA::BinaryTree * GetParentTree() const
virtual void ReadAttributes(void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)=0
virtual void SetRight(Node *r)
virtual ~Node()
node destructor
virtual void SetParentTree(TMVA::BinaryTree *t)
virtual void AddAttributesToNode(void *node) const =0
virtual Bool_t ReadDataRecord(std::istream &, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)=0
virtual Bool_t GoesLeft(const Event &) const =0
virtual void SetLeft(Node *l)
Base class for BinarySearch and Decision Trees.
#define ClassDef(name, id)
virtual Node * GetRight() const
virtual Node * GetLeft() const
void ReadXML(void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
read attributes from XML
virtual Node * GetParent() const
virtual void AddContentToNode(std::stringstream &s) const =0
virtual void Print(std::ostream &os) const =0
std::ostream & operator<<(std::ostream &os, const BinaryTree &tree)
virtual void SetParent(Node *p)
friend std::ostream & operator<<(std::ostream &os, const Node &node)
Int_t CountMeAndAllDaughters() const
recursively go through the part of the tree below this node and count all daughters ...
Abstract ClassifierFactory template that handles arbitrary types.
Node for the BinarySearch or Decision Trees.
virtual Bool_t GoesRight(const Event &) const =0
virtual Node * CreateNode() const =0
virtual void ReadContent(std::stringstream &s)=0