7 namespace datastructure {
21 int leftPos = 0, rightPos = 1;
35 const string& lab =
string()) :
49 BTElement(
const E& e = E(),
const string& lab =
string())
virtual const string getDStype() const override
Definition: BTElement.h:56
virtual BTElement * getRight()
Definition: BTElement.h:76
virtual const BTElement * getLeft() const
Definition: BTElement.h:67
void setChild(const size_t &index, TreeElement *kid)
Sets child at index to "kid".
Definition: TreeElement.h:108
This class can be used to create tree elements, derived from Element.
Definition: TreeElement.h:24
void setRight(BTElement *r)
Definition: BTElement.h:85
TreeElement * getChild(const int &n)
Gets the nth child of this node.
Definition: TreeElement.h:73
virtual const BTElement * getRight() const
Definition: BTElement.h:81
virtual BTElement * getLeft()
Definition: BTElement.h:63
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
BTElement(BTElement *l, BTElement *r, const E &e=E(), const string &lab=string())
Constructs a BTElement with the provided value, label, left and right BTElements. ...
Definition: BTElement.h:34
void setLeft(BTElement *l)
Definition: BTElement.h:71
BTElement(const E &e=E(), const string &lab=string())
Constructs a BTElement with the provided value and label, setting the left and right BTElement to nul...
Definition: BTElement.h:49
This class can be used to create binary tree elements, derived from TreeElement.
Definition: BTElement.h:19
void addChild(TreeElement *child)
Adds a child to children.
Definition: TreeElement.h:94