|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
AVL node data with balance factor and subtree count. More...
#include <avlNodeRk.H>
Public Member Functions | |
| AvlNodeRk_Data () noexcept | |
| AvlNodeRk_Data (SentinelCtor) noexcept | |
| signed char & | getDiff () noexcept |
| size_t & | getCount () noexcept |
| void | reset () noexcept |
Private Attributes | |
| signed char | diff = 0 |
| size_t | count = 1 |
AVL node data with balance factor and subtree count.
This class stores the balance factor (diff) for AVL balancing and a count field for the number of nodes in the subtree rooted at this node. The count enables O(log n) select and position operations.
Definition at line 56 of file avlNodeRk.H.
|
inlinenoexcept |
Definition at line 63 of file avlNodeRk.H.
|
inlinenoexcept |
Definition at line 65 of file avlNodeRk.H.
|
inlinenoexcept |
Definition at line 69 of file avlNodeRk.H.
References count.
Definition at line 67 of file avlNodeRk.H.
References diff.
|
inlinenoexcept |
Definition at line 71 of file avlNodeRk.H.
|
private |
Definition at line 59 of file avlNodeRk.H.
Referenced by getCount(), and reset().
Definition at line 58 of file avlNodeRk.H.