|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Data portion of an AVL tree node. More...
#include <avlNode.H>
Public Member Functions | |
| AvlNode_Data () noexcept | |
| Default constructor initializes balance to 0 (equal heights) | |
| signed char & | getDiff () noexcept |
| Get reference to balance factor. | |
| void | reset () noexcept |
| Reset balance factor to 0 (for reuse) | |
Private Attributes | |
| signed char | diff = 0 |
| Balance factor: height(right) - height(left) | |
Data portion of an AVL tree node.
Stores the balance factor (height difference between right and left subtrees). Valid values are -1, 0, or +1.
|
inlinenoexcept |
|
inlinenoexcept |