|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Data portion of a treap node. More...
#include <treapNode.H>
Public Member Functions | |
| TreapNode_Data () noexcept | |
| Default constructor sets maximum priority. | |
| TreapNode_Data (SentinelCtor) noexcept | |
| Sentinel constructor also uses maximum priority. | |
| unsigned long & | getPriority () noexcept |
| Get reference to priority value. | |
| void | reset () noexcept |
| Reset (no-op for treap nodes) | |
Private Attributes | |
| unsigned long | priority |
| Random priority for heap property. | |
Data portion of a treap node.
Stores the random priority used to maintain heap property. Lower priority values are closer to the root.
Definition at line 88 of file treapNode.H.
|
inlinenoexcept |
Default constructor sets maximum priority.
Definition at line 95 of file treapNode.H.
|
inlinenoexcept |
Sentinel constructor also uses maximum priority.
Definition at line 98 of file treapNode.H.
|
inlinenoexcept |
Reset (no-op for treap nodes)
Definition at line 104 of file treapNode.H.
Random priority for heap property.
Definition at line 90 of file treapNode.H.
Referenced by getPriority().