#include <Node.h>
Inheritance diagram for TMVA::Node:
Public Member Functions | |
Node () | |
Node (Node *p, char pos) | |
Node (const Node &n) | |
virtual | ~Node () |
virtual Node * | CreateNode () const=0 |
virtual Bool_t | GoesRight (const Event &) const =0 |
virtual Bool_t | GoesLeft (const Event &) const =0 |
virtual Node * | GetLeft () const |
virtual Node * | GetRight () const |
virtual Node * | GetParent () const |
virtual void | SetLeft (Node *l) |
virtual void | SetRight (Node *r) |
virtual void | SetParent (Node *p) |
Int_t | CountMeAndAllDaughters () const |
virtual void | Print (std::ostream &os) const=0 |
virtual void | PrintRec (std::ostream &os) const=0 |
void * | AddXMLTo (void *parent) const |
void | ReadXML (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE) |
virtual void | AddAttributesToNode (void *node) const=0 |
virtual void | AddContentToNode (std::stringstream &s) const =0 |
void | SetDepth (UInt_t d) |
UInt_t | GetDepth () const |
void | SetPos (char s) |
char | GetPos () const |
virtual TMVA::BinaryTree * | GetParentTree () const |
virtual void | SetParentTree (TMVA::BinaryTree *t) |
int | GetCount () |
virtual Bool_t | ReadDataRecord (std::istream &, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)=0 |
virtual void | ReadAttributes (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)=0 |
virtual void | ReadContent (std::stringstream &s)=0 |
Node () | |
Node (Node *p, char pos) | |
Node (const Node &n) | |
virtual | ~Node () |
virtual Node * | CreateNode () const=0 |
virtual Bool_t | GoesRight (const Event &) const =0 |
virtual Bool_t | GoesLeft (const Event &) const =0 |
virtual Node * | GetLeft () const |
virtual Node * | GetRight () const |
virtual Node * | GetParent () const |
virtual void | SetLeft (Node *l) |
virtual void | SetRight (Node *r) |
virtual void | SetParent (Node *p) |
Int_t | CountMeAndAllDaughters () const |
virtual void | Print (std::ostream &os) const=0 |
virtual void | PrintRec (std::ostream &os) const=0 |
void * | AddXMLTo (void *parent) const |
void | ReadXML (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE) |
virtual void | AddAttributesToNode (void *node) const=0 |
virtual void | AddContentToNode (std::stringstream &s) const =0 |
void | SetDepth (UInt_t d) |
UInt_t | GetDepth () const |
void | SetPos (char s) |
char | GetPos () const |
virtual TMVA::BinaryTree * | GetParentTree () const |
virtual void | SetParentTree (TMVA::BinaryTree *t) |
int | GetCount () |
virtual Bool_t | ReadDataRecord (std::istream &, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)=0 |
virtual void | ReadAttributes (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)=0 |
virtual void | ReadContent (std::stringstream &s)=0 |
Protected Attributes | |
Node * | fParent |
Node * | fLeft |
Node * | fRight |
char | fPos |
UInt_t | fDepth |
BinaryTree * | fParentTree |
Node * | fParent |
Node * | fLeft |
Node * | fRight |
BinaryTree * | fParentTree |
Static Private Attributes | |
static Int_t | fgCount |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Node &node) |
std::ostream & | operator<< (std::ostream &os, const Node *node) |
std::ostream & | operator<< (std::ostream &os, const Node &node) |
std::ostream & | operator<< (std::ostream &os, const Node *node) |
Definition at line 60 of file Node.h.
TMVA::Node::Node | ( | ) |
TMVA::Node::Node | ( | Node * | p, | |
char | pos | |||
) |
TMVA::Node::Node | ( | ) |
TMVA::Node::Node | ( | Node * | p, | |
char | pos | |||
) |
TMVA::Node::Node | ( | const Node & | n | ) |
virtual TMVA::Node::~Node | ( | ) | [virtual] |
Referenced by TMVA::BinarySearchTree::Insert().
Referenced by TMVA::BinarySearchTree::Insert().
virtual Node* TMVA::Node::GetLeft | ( | ) | const [inline, virtual] |
Definition at line 91 of file Node.h.
References fLeft.
Referenced by TMVA::RuleEnsemble::AddRule(), TMVA::BinarySearchTree::CalcStatistics(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::BinarySearchTree::Clear(), TMVA::BinaryTree::DeleteNode(), TMVA::RuleEnsemble::FindNEndNodes(), TMVA::CCTreeWrapper::CCTreeNode::GetLeftDaughter(), TMVA::BinarySearchTree::Insert(), and TMVA::CCTreeWrapper::CCTreeNode::~CCTreeNode().
virtual Node* TMVA::Node::GetRight | ( | ) | const [inline, virtual] |
Definition at line 92 of file Node.h.
References fRight.
Referenced by TMVA::RuleEnsemble::AddRule(), TMVA::BinarySearchTree::CalcStatistics(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::BinarySearchTree::Clear(), TMVA::BinaryTree::DeleteNode(), TMVA::RuleEnsemble::FindNEndNodes(), TMVA::CCTreeWrapper::CCTreeNode::GetRightDaughter(), TMVA::BinarySearchTree::Insert(), TMVA::CCTreeWrapper::CCTreeNode::PrintRec(), and TMVA::CCTreeWrapper::CCTreeNode::~CCTreeNode().
virtual Node* TMVA::Node::GetParent | ( | ) | const [inline, virtual] |
Definition at line 93 of file Node.h.
References fParent.
Referenced by TMVA::RuleEnsemble::AddRule(), TMVA::CCTreeWrapper::CCTreeNode::GetMother(), TMVA::RuleEnsemble::MakeTheRule(), and TMVA::BinaryTree::Read().
virtual void TMVA::Node::SetLeft | ( | Node * | l | ) | [inline, virtual] |
Definition at line 96 of file Node.h.
Referenced by TMVA::BinarySearchTreeNode::BinarySearchTreeNode(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::BinarySearchTree::Insert(), and TMVA::BinaryTree::Read().
virtual void TMVA::Node::SetRight | ( | Node * | r | ) | [inline, virtual] |
Definition at line 97 of file Node.h.
References fRight.
Referenced by TMVA::BinarySearchTreeNode::BinarySearchTreeNode(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::BinarySearchTree::Insert(), and TMVA::BinaryTree::Read().
virtual void TMVA::Node::SetParent | ( | Node * | p | ) | [inline, virtual] |
Definition at line 98 of file Node.h.
Referenced by TMVA::BinarySearchTreeNode::BinarySearchTreeNode(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::BinarySearchTree::Insert(), and TMVA::BinaryTree::Read().
Int_t TMVA::Node::CountMeAndAllDaughters | ( | ) | const |
virtual void TMVA::Node::Print | ( | std::ostream & | os | ) | const [pure virtual] |
Referenced by TMVA::operator<<().
virtual void TMVA::Node::PrintRec | ( | std::ostream & | os | ) | const [pure virtual] |
Referenced by TMVA::BinaryTree::Print(), and TMVA::CCTreeWrapper::CCTreeNode::PrintRec().
void * TMVA::Node::AddXMLTo | ( | void * | parent | ) | const |
Definition at line 140 of file Node.cxx.
References TMVA::Tools::AddAttr(), AddAttributesToNode(), TMVA::Tools::AddChild(), AddContentToNode(), fDepth, fPos, TMVA::gTools(), and s.
Referenced by TMVA::BinaryTree::AddXMLTo().
void TMVA::Node::ReadXML | ( | void * | node, | |
UInt_t | tmva_Version_Code = TMVA_VERSION_CODE | |||
) |
Definition at line 155 of file Node.cxx.
References CreateNode(), fDepth, fPos, TMVA::Tools::GetChild(), TMVA::Tools::GetContent(), TMVA::Tools::GetNextChild(), TMVA::gTools(), n, TMVA::Tools::ReadAttr(), ReadAttributes(), ReadContent(), and s.
Referenced by TMVA::BinaryTree::ReadXML().
virtual void TMVA::Node::AddAttributesToNode | ( | void * | node | ) | const [pure virtual] |
Referenced by AddXMLTo().
virtual void TMVA::Node::AddContentToNode | ( | std::stringstream & | s | ) | const [pure virtual] |
Referenced by AddXMLTo().
void TMVA::Node::SetDepth | ( | UInt_t | d | ) | [inline] |
Definition at line 115 of file Node.h.
References fDepth.
Referenced by TMVA::BinarySearchTree::Insert(), and TMVA::DecisionTreeNode::ReadDataRecord().
UInt_t TMVA::Node::GetDepth | ( | ) | const [inline] |
Definition at line 118 of file Node.h.
References fDepth.
Referenced by TMVA::BinarySearchTree::Insert(), TMVA::DecisionTreeNode::Print(), TMVA::DecisionTreeNode::PrintRec(), and TMVA::BinaryTree::Read().
void TMVA::Node::SetPos | ( | char | s | ) | [inline] |
Definition at line 121 of file Node.h.
References fPos.
Referenced by TMVA::BinarySearchTree::Insert(), and TMVA::DecisionTreeNode::ReadDataRecord().
char TMVA::Node::GetPos | ( | ) | const [inline] |
Definition at line 124 of file Node.h.
References fPos.
Referenced by TMVA::DecisionTreeNode::PrintRec(), and TMVA::BinaryTree::Read().
virtual TMVA::BinaryTree* TMVA::Node::GetParentTree | ( | ) | const [inline, virtual] |
virtual void TMVA::Node::SetParentTree | ( | TMVA::BinaryTree * | t | ) | [inline, virtual] |
virtual Bool_t TMVA::Node::ReadDataRecord | ( | std::istream & | , | |
UInt_t | tmva_Version_Code = TMVA_VERSION_CODE | |||
) | [pure virtual] |
Referenced by TMVA::BinaryTree::Read().
virtual void TMVA::Node::ReadAttributes | ( | void * | node, | |
UInt_t | tmva_Version_Code = TMVA_VERSION_CODE | |||
) | [pure virtual] |
Referenced by ReadXML().
virtual void TMVA::Node::ReadContent | ( | std::stringstream & | s | ) | [pure virtual] |
Referenced by ReadXML().
virtual Node* TMVA::Node::CreateNode | ( | ) | const [pure virtual] |
virtual Node* TMVA::Node::GetLeft | ( | ) | const [inline, virtual] |
virtual Node* TMVA::Node::GetRight | ( | ) | const [inline, virtual] |
virtual Node* TMVA::Node::GetParent | ( | ) | const [inline, virtual] |
virtual void TMVA::Node::SetLeft | ( | Node * | l | ) | [inline, virtual] |
virtual void TMVA::Node::SetRight | ( | Node * | r | ) | [inline, virtual] |
virtual void TMVA::Node::SetParent | ( | Node * | p | ) | [inline, virtual] |
Int_t TMVA::Node::CountMeAndAllDaughters | ( | ) | const |
virtual void TMVA::Node::Print | ( | std::ostream & | os | ) | const [pure virtual] |
virtual void TMVA::Node::PrintRec | ( | std::ostream & | os | ) | const [pure virtual] |
void* TMVA::Node::AddXMLTo | ( | void * | parent | ) | const |
void TMVA::Node::ReadXML | ( | void * | node, | |
UInt_t | tmva_Version_Code = TMVA_VERSION_CODE | |||
) |
virtual void TMVA::Node::AddAttributesToNode | ( | void * | node | ) | const [pure virtual] |
virtual void TMVA::Node::AddContentToNode | ( | std::stringstream & | s | ) | const [pure virtual] |
void TMVA::Node::SetDepth | ( | UInt_t | d | ) | [inline] |
UInt_t TMVA::Node::GetDepth | ( | ) | const [inline] |
virtual TMVA::BinaryTree* TMVA::Node::GetParentTree | ( | ) | const [inline, virtual] |
virtual void TMVA::Node::SetParentTree | ( | TMVA::BinaryTree * | t | ) | [inline, virtual] |
int TMVA::Node::GetCount | ( | ) |
virtual Bool_t TMVA::Node::ReadDataRecord | ( | std::istream & | , | |
UInt_t | tmva_Version_Code = TMVA_VERSION_CODE | |||
) | [pure virtual] |
virtual void TMVA::Node::ReadAttributes | ( | void * | node, | |
UInt_t | tmva_Version_Code = TMVA_VERSION_CODE | |||
) | [pure virtual] |
virtual void TMVA::Node::ReadContent | ( | std::stringstream & | s | ) | [pure virtual] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const Node & | node | |||
) | [friend] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const Node * | node | |||
) | [friend] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const Node & | node | |||
) | [friend] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const Node * | node | |||
) | [friend] |
Node* TMVA::Node::fParent [protected] |
Definition at line 140 of file Node.h.
Referenced by GetParent(), TMVA::DecisionTreeNode::GetParent(), SetParent(), and TMVA::DecisionTreeNode::SetParent().
Node* TMVA::Node::fLeft [protected] |
Definition at line 141 of file Node.h.
Referenced by TMVA::DecisionTreeNode::GetLeft(), GetLeft(), TMVA::DecisionTreeNode::SetLeft(), and SetLeft().
Node* TMVA::Node::fRight [protected] |
Definition at line 142 of file Node.h.
Referenced by GetRight(), TMVA::DecisionTreeNode::GetRight(), TMVA::DecisionTreeNode::SetRight(), and SetRight().
char TMVA::Node::fPos [protected] |
UInt_t TMVA::Node::fDepth [protected] |
Definition at line 145 of file Node.h.
Referenced by AddXMLTo(), GetDepth(), ReadXML(), and SetDepth().
BinaryTree* TMVA::Node::fParentTree [protected] |
static Int_t TMVA::Node::fgCount [static, private] |
Node* TMVA::Node::fParent [protected] |
Node* TMVA::Node::fLeft [protected] |
Node* TMVA::Node::fRight [protected] |
BinaryTree* TMVA::Node::fParentTree [protected] |