11 namespace datastructure {
30 template <
typename K,
typename E>
47 const string& lab =
string())
59 BSTElement(
const K& k,
const E& val = E(),
const string& lab =
string())
67 return "BinarySearchTree";
This class can be used to create binary search tree elements, derived from BinTreeElement.
Definition: BSTElement.h:31
virtual BinTreeElement * getLeft()
Definition: BinTreeElement.h:67
virtual BSTElement * getRight() override
Definition: BSTElement.h:111
void setKey(const K &k)
Definition: BSTElement.h:81
virtual const BSTElement * getLeft() const override
Definition: BSTElement.h:96
BSTElement(const K &k, const E &val=E(), const string &lab=string())
Definition: BSTElement.h:59
const string COLON
Definition: DataStructure.h:51
virtual const BSTElement * getRight() const override
Definition: BSTElement.h:119
void setLeft(BSTElement *l)
Definition: BSTElement.h:104
K getKey() const
Definition: BSTElement.h:73
BSTElement(const K &k, BSTElement *l, BSTElement *r, const E &val=E(), const string &lab=string())
Definition: BSTElement.h:46
void setLeft(BinTreeElement *l)
Definition: BinTreeElement.h:84
virtual const string getElementRepresentation() const
Gets the JSON string of the element representation.
Definition: Element.h:238
virtual BSTElement * getLeft() override
Definition: BSTElement.h:88
virtual const string getDStype() const override
Definition: BSTElement.h:66
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
virtual BinTreeElement * getRight()
Definition: BinTreeElement.h:92
virtual const string getElementRepresentation() const override
Definition: BSTElement.h:134
This class can be used to create binary tree elements, derived from TreeElement.
Definition: BinTreeElement.h:24
const string COMMA
Definition: DataStructure.h:50
const string QUOTE
Definition: DataStructure.h:49
K key
Definition: BSTElement.h:33
void setRight(BSTElement *r)
Definition: BSTElement.h:127
void setRight(BinTreeElement *r)
Definition: BinTreeElement.h:109
std::string JSONencode(const T &d)
Definition: JSONutil.h:37