TMVA::Node Class Reference

#include <Node.h>

Inheritance diagram for TMVA::Node:

TMVA::BinarySearchTreeNode TMVA::BinarySearchTreeNode TMVA::CCTreeWrapper::CCTreeNode TMVA::CCTreeWrapper::CCTreeNode TMVA::DecisionTreeNode TMVA::DecisionTreeNode List of all members.

Public Member Functions

 Node ()
 Node (Node *p, char pos)
 Node (const Node &n)
virtual ~Node ()
virtual NodeCreateNode () const=0
virtual Bool_t GoesRight (const Event &) const =0
virtual Bool_t GoesLeft (const Event &) const =0
virtual NodeGetLeft () const
virtual NodeGetRight () const
virtual NodeGetParent () 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::BinaryTreeGetParentTree () 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 NodeCreateNode () const=0
virtual Bool_t GoesRight (const Event &) const =0
virtual Bool_t GoesLeft (const Event &) const =0
virtual NodeGetLeft () const
virtual NodeGetRight () const
virtual NodeGetParent () 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::BinaryTreeGetParentTree () 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

NodefParent
NodefLeft
NodefRight
char fPos
UInt_t fDepth
BinaryTreefParentTree
NodefParent
NodefLeft
NodefRight
BinaryTreefParentTree

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)

Detailed Description

Definition at line 60 of file Node.h.


Constructor & Destructor Documentation

TMVA::Node::Node (  ) 

TMVA::Node::Node ( Node p,
char  pos 
)

Definition at line 65 of file Node.cxx.

References fgCount, fPos, and p.

TMVA::Node::Node ( const Node n  ) 

Definition at line 81 of file Node.cxx.

References fgCount.

TMVA::Node::~Node (  )  [virtual]

Definition at line 96 of file Node.cxx.

References fgCount.

TMVA::Node::Node (  ) 

TMVA::Node::Node ( Node p,
char  pos 
)

TMVA::Node::Node ( const Node n  ) 

virtual TMVA::Node::~Node (  )  [virtual]


Member Function Documentation

virtual Node* TMVA::Node::CreateNode (  )  const [pure virtual]

Referenced by ReadXML().

virtual Bool_t TMVA::Node::GoesRight ( const Event  )  const [pure virtual]

Referenced by TMVA::BinarySearchTree::Insert().

virtual Bool_t TMVA::Node::GoesLeft ( const Event  )  const [pure virtual]

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.

References fLeft, and l.

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.

References fParent, and p.

Referenced by TMVA::BinarySearchTreeNode::BinarySearchTreeNode(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::BinarySearchTree::Insert(), and TMVA::BinaryTree::Read().

Int_t TMVA::Node::CountMeAndAllDaughters (  )  const

Definition at line 110 of file Node.cxx.

References n, and NULL.

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]

Definition at line 127 of file Node.h.

References fParentTree.

virtual void TMVA::Node::SetParentTree ( TMVA::BinaryTree t  )  [inline, virtual]

Definition at line 130 of file Node.h.

References fParentTree, and t.

int TMVA::Node::GetCount (  ) 

Definition at line 103 of file Node.cxx.

References fgCount.

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 Bool_t TMVA::Node::GoesRight ( const Event  )  const [pure virtual]

virtual Bool_t TMVA::Node::GoesLeft ( const Event  )  const [pure virtual]

virtual Node* TMVA::Node::GetLeft (  )  const [inline, virtual]

Definition at line 91 of file Node.h.

References fLeft.

virtual Node* TMVA::Node::GetRight (  )  const [inline, virtual]

Definition at line 92 of file Node.h.

References fRight.

virtual Node* TMVA::Node::GetParent (  )  const [inline, virtual]

Definition at line 93 of file Node.h.

References fParent.

virtual void TMVA::Node::SetLeft ( Node l  )  [inline, virtual]

Definition at line 96 of file Node.h.

References fLeft, and l.

virtual void TMVA::Node::SetRight ( Node r  )  [inline, virtual]

Definition at line 97 of file Node.h.

References fRight.

virtual void TMVA::Node::SetParent ( Node p  )  [inline, virtual]

Definition at line 98 of file Node.h.

References fParent, and p.

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]

Definition at line 115 of file Node.h.

References fDepth.

UInt_t TMVA::Node::GetDepth (  )  const [inline]

Definition at line 118 of file Node.h.

References fDepth.

void TMVA::Node::SetPos ( char  s  )  [inline]

Definition at line 121 of file Node.h.

References fPos.

char TMVA::Node::GetPos (  )  const [inline]

Definition at line 124 of file Node.h.

References fPos.

virtual TMVA::BinaryTree* TMVA::Node::GetParentTree (  )  const [inline, virtual]

Definition at line 127 of file Node.h.

References fParentTree.

virtual void TMVA::Node::SetParentTree ( TMVA::BinaryTree t  )  [inline, virtual]

Definition at line 130 of file Node.h.

References fParentTree, and t.

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]


Friends And Related Function Documentation

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]


Member Data Documentation

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]

Definition at line 144 of file Node.h.

Referenced by AddXMLTo(), GetPos(), Node(), ReadXML(), and SetPos().

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]

Definition at line 147 of file Node.h.

Referenced by GetParentTree(), and SetParentTree().

static Int_t TMVA::Node::fgCount [static, private]

Definition at line 150 of file Node.h.

Referenced by GetCount(), Node(), and ~Node().

Node* TMVA::Node::fParent [protected]

Definition at line 140 of file Node.h.

Node* TMVA::Node::fLeft [protected]

Definition at line 141 of file Node.h.

Node* TMVA::Node::fRight [protected]

Definition at line 142 of file Node.h.

BinaryTree* TMVA::Node::fParentTree [protected]

Definition at line 147 of file Node.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:37 2011 for ROOT_528-00b_version by  doxygen 1.5.1