7 namespace datastructure {
25 template <
typename K,
typename E>
29 int height = 0, balFactor = 0;
41 :
BSTElement<K, E>(k, nullptr, nullptr, val, lab) {}
132 virtual const string getElementRepresentation()
const override final {
This class can be used to create binary search tree elements, derived from BinTreeElement.
Definition: BSTElement.h:31
virtual const string getDStype() const override
Definition: AVLTreeElement.h:47
virtual const AVLTreeElement * getRight() const override
Definition: AVLTreeElement.h:115
virtual AVLTreeElement * getLeft() override
Definition: AVLTreeElement.h:84
virtual BSTElement * getRight() override
Definition: BSTElement.h:111
const string COLON
Definition: DataStructure.h:51
void setLeft(BSTElement *l)
Definition: BSTElement.h:104
virtual const AVLTreeElement * getLeft() const override
Definition: AVLTreeElement.h:92
int getHeight() const
Definition: AVLTreeElement.h:54
AVLTreeElement(const K &k, const E &val=E(), const string &lab=string())
Definition: AVLTreeElement.h:40
This class can be used to create avl tree elements, derived from BSTElement.
Definition: AVLTreeElement.h:26
void setLeft(AVLTreeElement *l)
Definition: AVLTreeElement.h:100
virtual BSTElement * getLeft() override
Definition: BSTElement.h:88
virtual AVLTreeElement * getRight() override
Definition: AVLTreeElement.h:107
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
void setHeight(const int &h)
Definition: AVLTreeElement.h:62
void setRight(AVLTreeElement *r)
Definition: AVLTreeElement.h:123
void setBalanceFactor(const int &bf)
Definition: AVLTreeElement.h:77
int getBalanceFactor() const
Definition: AVLTreeElement.h:69
virtual const string getElementRepresentation() const override
Definition: BSTElement.h:134
const string COMMA
Definition: DataStructure.h:50
const string QUOTE
Definition: DataStructure.h:49
void setRight(BSTElement *r)
Definition: BSTElement.h:127