Binary tree. More...
#include <tree.hh>


Public Types | |
| typedef biNode | Node |
| typedef BiTreeTraits< biNode > | Traits |
| How a Node has to behave. | |
Public Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Information about the tree. | |
| virtual uint | nleaf () const =0 |
| Number of leafs. | |
| virtual const biNode * | root () const =0 |
| Root of the tree. | |
| void | sketch (std::ostream &os, const biNode *rt=0, uint l=0) const |
| Sketches the structure of the tree. | |
Binary tree.
typedef biNode aglowav::One2ManyTree< biNode >::Node [inherited] |
| typedef BiTreeTraits<biNode> aglowav::BiTree< biNode >::Traits |
How a Node has to behave.
Reimplemented from aglowav::One2ManyTree< biNode >.
Reimplemented in aglowav::Tree01< BiClNode >, and aglowav::Tree02< BiClNode >.
| virtual std::ostream& aglowav::One2ManyTree< biNode >::info | ( | std::ostream & | os | ) | const [virtual, inherited] |
Information about the tree.
| virtual uint aglowav::One2ManyTree< biNode >::nleaf | ( | ) | const [pure virtual, inherited] |
Number of leafs.
| virtual const biNode* aglowav::BiTree< biNode >::root | ( | ) | const [pure virtual] |
Root of the tree.
Implements aglowav::One2ManyTree< biNode >.
Implemented in aglowav::Tree01< BiClNode >, and aglowav::Tree02< BiClNode >.
| void aglowav::One2ManyTree< biNode >::sketch | ( | std::ostream & | os, |
| const biNode * | rt = 0, |
||
| uint | l = 0 |
||
| ) | const [inherited] |
Sketches the structure of the tree.
| rt | root of the subtree which is to sketch |
| l | level of the root of the subtree |