library: libTMVA
#include "BinaryTree.h"

TMVA::BinaryTree


class description - header file - source file
viewCVS header - viewCVS source

class TMVA::BinaryTree

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
virtual~BinaryTree()
TMVA::BinaryTreeBinaryTree()
static TClass*Class()
UInt_tCountNodes(TMVA::Node* n = NULL)
TMVA::Node*GetLeftDaughter(TMVA::Node* n)
UInt_tGetNNodes() const
TMVA::Node*GetRightDaughter(TMVA::Node* n)
TMVA::Node*GetRoot() const
virtual TClass*IsA() const
voidPrint(ostream& os) const
voidSetRoot(TMVA::Node* r)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
voidDeleteNode(TMVA::Node*)

Data Members

protected:
Int_tfNNodestotal number of nodes in the tree (counted)
TMVA::MsgLoggerfLoggermessage loggera
private:
TMVA::Node*fRootthe root node of the tree

Class Description

                                                                      
 Base class for BinarySearch and Decision Trees                       
______________________________________________________________________
BinaryTree( void )
 constructor for a yet "empty" tree. Needs to be filled afterwards
~BinaryTree( void )
destructor (deletes the nodes and "events" if owned by the tree
void DeleteNode( TMVA::Node* node )
 protected, recursive, function used by the class destructor and when Pruning
TMVA::Node* GetLeftDaughter( Node *n)
 get left daughter node current node "n"
TMVA::Node* GetRightDaughter( Node *n)
 get right daughter node current node "n"
UInt_t CountNodes(TMVA::Node *n)
 return the number of nodes in the tree. (make a new count --> takes time)
void Print(ostream & os)
recursively print the tree
void SetRoot( Node* r )
{ fRoot = r; }
Node* GetRoot( void )
 Retrieves the address of the root node
{ return fRoot; }
UInt_t GetNNodes( void )
 get number of Nodes in the Tree as counted while booking the nodes;
{ return fNNodes; }

Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
Last update: root/tmva $Id: BinaryTree.cxx,v 1.10 2006/11/20 15:35:28 brun Exp $
Copyright (c) 2005: *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.