ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Static Private Attributes | Friends | List of all members
TMVA::Node Class Referenceabstract

Definition at line 60 of file Node.h.

Public Member Functions

 Node ()
 
 Node (Node *p, char pos)
 constructor of a daughter node as a daughter of 'p' More...
 
 Node (const Node &n)
 copy constructor, make sure you don't just copy the poiter to the node, but that the parents/daugthers are initialized to 0 (and set by the copy constructors of the derived classes More...
 
virtual ~Node ()
 node destructor More...
 
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
 recursively go through the part of the tree below this node and count all daughters More...
 
virtual void Print (std::ostream &os) const =0
 
virtual void PrintRec (std::ostream &os) const =0
 
voidAddXMLTo (void *parent) const
 add attributes to XML More...
 
void ReadXML (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
 read attributes from XML More...
 
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 ()
 retuns the global number of instantiated nodes More...
 
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
 

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)
 

#include <TMVA/Node.h>

Inheritance diagram for TMVA::Node:
[legend]

Constructor & Destructor Documentation

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

constructor of a daughter node as a daughter of 'p'

Definition at line 68 of file Node.cxx.

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

copy constructor, make sure you don't just copy the poiter to the node, but that the parents/daugthers are initialized to 0 (and set by the copy constructors of the derived classes

Definition at line 86 of file Node.cxx.

TMVA::Node::~Node ( )
virtual

node destructor

Definition at line 100 of file Node.cxx.

Member Function Documentation

virtual void TMVA::Node::AddAttributesToNode ( void node) const
pure virtual
virtual void TMVA::Node::AddContentToNode ( std::stringstream &  s) const
pure virtual
void * TMVA::Node::AddXMLTo ( void parent) const

add attributes to XML

Definition at line 149 of file Node.cxx.

Int_t TMVA::Node::CountMeAndAllDaughters ( ) const

recursively go through the part of the tree below this node and count all daughters

Definition at line 116 of file Node.cxx.

virtual Node* TMVA::Node::CreateNode ( ) const
pure virtual
int TMVA::Node::GetCount ( )

retuns the global number of instantiated nodes

Definition at line 108 of file Node.cxx.

UInt_t TMVA::Node::GetDepth ( ) const
inline
virtual Node* TMVA::Node::GetLeft ( ) const
inlinevirtual
virtual Node* TMVA::Node::GetParent ( ) const
inlinevirtual
virtual TMVA::BinaryTree* TMVA::Node::GetParentTree ( ) const
inlinevirtual

Definition at line 127 of file Node.h.

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

Definition at line 124 of file Node.h.

Referenced by TMVA::BinaryTree::Read(), and ReadXML().

virtual Node* TMVA::Node::GetRight ( ) const
inlinevirtual
virtual Bool_t TMVA::Node::GoesLeft ( const Event ) const
pure virtual
virtual Bool_t TMVA::Node::GoesRight ( const Event ) const
pure virtual
virtual void TMVA::Node::Print ( std::ostream &  os) const
pure virtual
virtual void TMVA::Node::PrintRec ( std::ostream &  os) const
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
virtual Bool_t TMVA::Node::ReadDataRecord ( std::istream &  ,
UInt_t  tmva_Version_Code = TMVA_VERSION_CODE 
)
pure virtual
void TMVA::Node::ReadXML ( void node,
UInt_t  tmva_Version_Code = TMVA_VERSION_CODE 
)

read attributes from XML

Definition at line 165 of file Node.cxx.

Referenced by ReadXML().

void TMVA::Node::SetDepth ( UInt_t  d)
inline

Definition at line 115 of file Node.h.

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

virtual void TMVA::Node::SetLeft ( Node l)
inlinevirtual
virtual void TMVA::Node::SetParent ( Node p)
inlinevirtual
virtual void TMVA::Node::SetParentTree ( TMVA::BinaryTree t)
inlinevirtual

Definition at line 130 of file Node.h.

Referenced by TMVA::DecisionTree::SetParentTreeInNodes().

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

Definition at line 121 of file Node.h.

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

virtual void TMVA::Node::SetRight ( Node r)
inlinevirtual

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

Member Data Documentation

UInt_t TMVA::Node::fDepth
protected

Definition at line 145 of file Node.h.

Referenced by GetDepth(), and SetDepth().

Int_t TMVA::Node::fgCount
staticprivate

Definition at line 150 of file Node.h.

Referenced by Node().

Node* TMVA::Node::fLeft
protected
Node* TMVA::Node::fParent
protected
BinaryTree* TMVA::Node::fParentTree
protected

Definition at line 147 of file Node.h.

Referenced by GetParentTree(), and SetParentTree().

char TMVA::Node::fPos
protected

Definition at line 144 of file Node.h.

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

Node* TMVA::Node::fRight
protected
Collaboration diagram for TMVA::Node:
[legend]

The documentation for this class was generated from the following files: