Used to initialize probability in list constructor. More...
Public Member Functions | |
Prob (size_type maxNodes) | |
Set probability to 0.25 and calculate maxLevel based on maxNodes. | |
Prob (double probability, unsigned int maxLevel) | |
Set probability and maximum number of levels directly. | |
Public Attributes | |
double | probability |
Probability that node will have another level. | |
unsigned int | maxLevel |
Used to initialize probability in list constructor.
unsigned int IndexedTinySkipList< T, R >::Prob::maxLevel |
Maximum number of levels allowed.