Rudiments
include
rudiments
private
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(
11
treenode<valuetype>
**
treetop
);
12
treenode<valuetype>
*rightLeftRotate(
13
treenode<valuetype>
**
treetop
);
14
treenode<valuetype>
*leftRotate(
15
treenode<valuetype>
**
treetop
);
16
treenode<valuetype>
*rightRotate(
17
treenode<valuetype>
**
treetop
);
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;
28
treenode<valuetype>
*left;
29
treenode<valuetype>
*right;
30
uint8_t leftheight;
31
uint8_t rightheight;
avltreenode
Definition
avltree.h:11
Generated on Tue Dec 3 2024 01:50:18 for Rudiments by
1.10.0