cds  2.3.2
cds::intrusive::skip_list::turbo< MaxHeight > Class Template Reference

Turbo-pascal random level generator. More...

#include <cds/intrusive/details/skip_list_base.h>

Public Member Functions

 turbo ()
 Initializes the generator instance.
 
unsigned int operator() ()
 Main generator function.
 

Static Public Attributes

static unsigned int const c_nUpperBound = MaxHeight
 The upper bound of generator's return value. The generator produces random number in range [0..c_nUpperBound)
 

Detailed Description

template<unsigned MaxHeight>
class cds::intrusive::skip_list::turbo< MaxHeight >

Turbo-pascal random level generator.

This uses a cheap pseudo-random function that was used in Turbo Pascal.

The random generator should return numbers from range [0..31].

From Doug Lea's ConcurrentSkipListMap.java.


The documentation for this class was generated from the following file:

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:47 by Doxygen 1.8.13