Public Member Functions | Public Attributes

IndexedSSkipList< T, R >::Prob Struct Reference

Used to initialize probability in list constructor. More...

#include <CSIndexedSkipList.h>

List of all members.

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

Detailed Description

template<class T, class R = RNG>
struct IndexedSSkipList< T, R >::Prob

Used to initialize probability in list constructor.


Member Data Documentation

template<class T, class R = RNG>
unsigned int IndexedSSkipList< T, R >::Prob::maxLevel

Maximum number of levels allowed.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs