Rudiments
|
#include <avltree.h>
Inherits treenode< valuetype >.
Public Member Functions | |
avltreenode (valuetype value) | |
~avltreenode () | |
void | setValue (valuetype value) |
valuetype | getValue () |
valuetype & | getReference () |
treenode< valuetype > * | getParent () |
treenode< valuetype > * | getLeftChild () |
treenode< valuetype > * | getRightChild () |
uint8_t | getLeftHeight () |
uint8_t | getRightHeight () |
treenode< valuetype > * | getPrevious () |
treenode< valuetype > * | getNext () |
Public Member Functions inherited from object | |
virtual | ~object () |
The avltreenode class stores the values that compose a avltree.
|
inline |
Creates an instance of the avltreenode class that stores value "value".
|
inline |
Deletes this instance of the avltreenode class.
|
inlinevirtual |
Returns the left child of this node in the avltree or NULL if this node has no left child.
Implements treenode< valuetype >.
|
inlinevirtual |
Returns the left height of this node in the avltree.
Implements treenode< valuetype >.
|
inlinevirtual |
Returns the next node in the avltree (in an in-order, depth-first traversal) or NULL if this node is the last node in the tree.
Implements treenode< valuetype >.
|
inlinevirtual |
Returns the parent node in the avltree or NULL if this node is the top-most node in the tree.
Implements treenode< valuetype >.
|
inlinevirtual |
Returns the previous node in the avltree (in an in-order, depth-first traversal) or NULL if this node is the first node in the tree.
Implements treenode< valuetype >.
|
inlinevirtual |
Returns a reference to the value stored in the node.
Implements treenode< valuetype >.
|
inlinevirtual |
Returns the right child of this node in the avltree or NULL if this node has no right child.
Implements treenode< valuetype >.
|
inlinevirtual |
Returns the right height of this node in the avltree.
Implements treenode< valuetype >.
|
inlinevirtual |
Returns the value stored in the node.
Implements treenode< valuetype >.
Sets the value stored in the node to "value".
Implements treenode< valuetype >.