Definition at line 68 of file BinaryTree.h.
#include <TMVA/BinaryTree.h>
◆ BinaryTree()
TMVA::BinaryTree::BinaryTree |
( |
void |
| ) |
|
constructor for a yet "empty" tree. Needs to be filled afterwards
Definition at line 56 of file BinaryTree.cxx.
◆ ~BinaryTree()
TMVA::BinaryTree::~BinaryTree |
( |
void |
| ) |
|
|
virtual |
destructor (deletes the nodes and "events" if owned by the tree
Definition at line 66 of file BinaryTree.cxx.
◆ AddXMLTo()
void * TMVA::BinaryTree::AddXMLTo |
( |
void * |
parent | ) |
const |
|
virtual |
◆ ClassName()
virtual const char* TMVA::BinaryTree::ClassName |
( |
| ) |
const |
|
pure virtual |
◆ CountNodes()
return the number of nodes in the tree. (make a new count –> takes time)
Definition at line 104 of file BinaryTree.cxx.
◆ CreateNode()
virtual Node* TMVA::BinaryTree::CreateNode |
( |
UInt_t |
size = 0 | ) |
const |
|
pure virtual |
◆ CreateTree()
virtual BinaryTree* TMVA::BinaryTree::CreateTree |
( |
| ) |
const |
|
pure virtual |
◆ DeleteNode()
protected, recursive, function used by the class destructor and when Pruning
Definition at line 75 of file BinaryTree.cxx.
◆ GetLeftDaughter()
get left daughter node current node "n"
Definition at line 88 of file BinaryTree.cxx.
◆ GetNNodes()
UInt_t TMVA::BinaryTree::GetNNodes |
( |
| ) |
const |
|
inline |
◆ GetRightDaughter()
get right daughter node current node "n"
Definition at line 96 of file BinaryTree.cxx.
◆ GetRoot()
virtual Node* TMVA::BinaryTree::GetRoot |
( |
| ) |
const |
|
inlinevirtual |
◆ GetTotalTreeDepth()
UInt_t TMVA::BinaryTree::GetTotalTreeDepth |
( |
| ) |
const |
|
inline |
◆ Log()
◆ Print()
void TMVA::BinaryTree::Print |
( |
std::ostream & |
os | ) |
const |
|
virtual |
◆ Read()
Read the binary tree from an input stream.
The input stream format depends on the tree type, it is defined be the node of the tree
Definition at line 170 of file BinaryTree.cxx.
◆ ReadXML()
◆ SetRoot()
void TMVA::BinaryTree::SetRoot |
( |
Node * |
r | ) |
|
|
inline |
◆ SetTotalTreeDepth() [1/2]
void TMVA::BinaryTree::SetTotalTreeDepth |
( |
Int_t |
depth | ) |
|
|
inline |
◆ SetTotalTreeDepth() [2/2]
descend a tree to find all its leaf nodes, fill max depth reached in the tree at the same time.
Definition at line 214 of file BinaryTree.cxx.
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const BinaryTree & |
tree |
|
) |
| |
|
friend |
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
istr, |
|
|
BinaryTree & |
tree |
|
) |
| |
|
friend |
◆ fDepth
UInt_t TMVA::BinaryTree::fDepth |
|
protected |
◆ fNNodes
UInt_t TMVA::BinaryTree::fNNodes |
|
protected |
◆ fRoot
Node* TMVA::BinaryTree::fRoot |
|
protected |
The documentation for this class was generated from the following files: