7 namespace datastructure {
26 int leftPos = 0, rightPos = 1;
39 const string& lab =
string()) :
TreeElement<E>(e, lab) {
This class can be used to create binary tree elements, derived from TreeElement.
Definition: BinTreeElement.h:24
BinTreeElement(const E &e=E(), const string &lab=string())
Definition: BinTreeElement.h:52
void setLeft(BinTreeElement *l)
Definition: BinTreeElement.h:84
void setRight(BinTreeElement *r)
Definition: BinTreeElement.h:109
virtual const BinTreeElement * getRight() const
Definition: BinTreeElement.h:100
BinTreeElement(BinTreeElement *l, BinTreeElement *r, const E &e=E(), const string &lab=string())
Definition: BinTreeElement.h:38
virtual BinTreeElement * getLeft()
Definition: BinTreeElement.h:67
virtual const BinTreeElement * getLeft() const
Definition: BinTreeElement.h:75
virtual BinTreeElement * getRight()
Definition: BinTreeElement.h:92
virtual const string getDStype() const override
Definition: BinTreeElement.h:59
This class can be used to create tree elements, derived from Element.
Definition: TreeElement.h:24
void addChild(TreeElement *child)
Adds a child to children.
Definition: TreeElement.h:94
TreeElement * getChild(const int &n)
Gets the nth child of this node.
Definition: TreeElement.h:73
void setChild(const size_t &index, TreeElement *kid)
Sets child at index to "kid".
Definition: TreeElement.h:108
Support for drawing Bar charts.
Definition: alltypes.h:4