Rudiments
avltreenode.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information
3
4 void detach(treenode<valuetype> **treetop);
5
6 void adjustParentHeights(treenode<valuetype> *node);
7
8 void balance(treenode<valuetype> **treetop);
9
10 treenode<valuetype> *leftRightRotate(
12 treenode<valuetype> *rightLeftRotate(
14 treenode<valuetype> *leftRotate(
16 treenode<valuetype> *rightRotate(
18
19 void setParent(treenode<valuetype> *node);
20 void setLeftChild(treenode<valuetype> *node);
21 void setRightChild(treenode<valuetype> *node);
22 void setLeftHeight(uint8_t height);
23 void setRightHeight(uint8_t height);
24
25 protected:
26 valuetype value;
27 treenode<valuetype> *parent;
30 uint8_t leftheight;
31 uint8_t rightheight;
Definition avltree.h:11