ROOT  6.06/08
Reference Guide
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 = 0
 

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:
+ Collaboration diagram for TMVA::Node:

Constructor & Destructor Documentation

§ Node() [1/3]

TMVA::Node::Node ( )

Definition at line 53 of file Node.cxx.

§ Node() [2/3]

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.

§ Node() [3/3]

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.

§ ~Node()

TMVA::Node::~Node ( )
virtual

node destructor

Definition at line 100 of file Node.cxx.

Member Function Documentation

§ AddAttributesToNode()

virtual void TMVA::Node::AddAttributesToNode ( void node) const
pure virtual

§ AddContentToNode()

virtual void TMVA::Node::AddContentToNode ( std::stringstream &  s) const
pure virtual

§ AddXMLTo()

void * TMVA::Node::AddXMLTo ( void parent) const

add attributes to XML

Definition at line 149 of file Node.cxx.

Referenced by TMVA::BinaryTree::AddXMLTo(), AddXMLTo(), and SetParent().

§ CountMeAndAllDaughters()

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.

Referenced by CountMeAndAllDaughters(), and SetParent().

§ CreateNode()

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

§ GetCount()

int TMVA::Node::GetCount ( )

retuns the global number of instantiated nodes

Definition at line 108 of file Node.cxx.

Referenced by SetParentTree().

§ GetDepth()

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

§ GetLeft()

virtual Node* TMVA::Node::GetLeft ( ) const
inlinevirtual

§ GetParent()

virtual Node* TMVA::Node::GetParent ( ) const
inlinevirtual

§ GetParentTree()

virtual TMVA::BinaryTree* TMVA::Node::GetParentTree ( ) const
inlinevirtual

Definition at line 127 of file Node.h.

§ GetPos()

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

§ GetRight()

virtual Node* TMVA::Node::GetRight ( ) const
inlinevirtual

§ GoesLeft()

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

§ GoesRight()

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

§ Print()

virtual void TMVA::Node::Print ( std::ostream &  os) const
pure virtual

§ PrintRec()

virtual void TMVA::Node::PrintRec ( std::ostream &  os) const
pure virtual

§ ReadAttributes()

virtual void TMVA::Node::ReadAttributes ( void node,
UInt_t  tmva_Version_Code = TMVA_VERSION_CODE 
)
pure virtual

§ ReadContent()

virtual void TMVA::Node::ReadContent ( std::stringstream &  s)
pure virtual

§ ReadDataRecord()

virtual Bool_t TMVA::Node::ReadDataRecord ( std::istream &  ,
UInt_t  tmva_Version_Code = TMVA_VERSION_CODE 
)
pure virtual

§ ReadXML()

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 TMVA::BinaryTree::ReadXML(), ReadXML(), and SetParent().

§ SetDepth()

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

§ SetLeft()

virtual void TMVA::Node::SetLeft ( Node l)
inlinevirtual

§ SetParent()

virtual void TMVA::Node::SetParent ( Node p)
inlinevirtual

§ SetParentTree()

virtual void TMVA::Node::SetParentTree ( TMVA::BinaryTree t)
inlinevirtual

§ SetPos()

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

§ SetRight()

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

Friends And Related Function Documentation

§ operator<< [1/2]

std::ostream& operator<< ( std::ostream &  os,
const Node node 
)
friend

§ operator<< [2/2]

std::ostream& operator<< ( std::ostream &  os,
const Node node 
)
friend

Member Data Documentation

§ fDepth

UInt_t TMVA::Node::fDepth
protected

Definition at line 145 of file Node.h.

Referenced by AddXMLTo(), GetDepth(), ReadXML(), and SetDepth().

§ fgCount

Int_t TMVA::Node::fgCount = 0
staticprivate

Definition at line 150 of file Node.h.

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

§ fLeft

Node* TMVA::Node::fLeft
protected

Definition at line 141 of file Node.h.

Referenced by GetLeft(), and SetLeft().

§ fParent

Node* TMVA::Node::fParent
protected

Definition at line 140 of file Node.h.

Referenced by GetParent(), and SetParent().

§ fParentTree

BinaryTree* TMVA::Node::fParentTree
protected

Definition at line 147 of file Node.h.

Referenced by GetParentTree(), and SetParentTree().

§ fPos

char TMVA::Node::fPos
protected

Definition at line 144 of file Node.h.

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

§ fRight

Node* TMVA::Node::fRight
protected

Definition at line 142 of file Node.h.

Referenced by GetRight(), and SetRight().


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