#include <ConcurrentSkipList-inl.h>
Definition at line 194 of file ConcurrentSkipList-inl.h.
folly::detail::SkipListRandomHeight::SkipListRandomHeight |
( |
| ) |
|
|
inlineprivate |
int folly::detail::SkipListRandomHeight::getHeight |
( |
int |
maxHeight | ) |
const |
|
inline |
size_t folly::detail::SkipListRandomHeight::getSizeLimit |
( |
int |
height | ) |
const |
|
inline |
void folly::detail::SkipListRandomHeight::initLookupTable |
( |
| ) |
|
|
inlineprivate |
Definition at line 225 of file ConcurrentSkipList-inl.h.
References i, and max.
227 static const double kProbInv = exp(1);
228 static const double kProb = 1.0 / kProbInv;
231 double sizeLimit = 1;
236 sizeLimit *= kProbInv;
240 :
static_cast<size_t>(sizeLimit);
double lookupTable_[kMaxHeight]
size_t sizeLimitTable_[kMaxHeight]
static double folly::detail::SkipListRandomHeight::randomProb |
( |
| ) |
|
|
inlinestaticprivate |
double folly::detail::SkipListRandomHeight::lookupTable_[kMaxHeight] |
|
private |
size_t folly::detail::SkipListRandomHeight::sizeLimitTable_[kMaxHeight] |
|
private |
The documentation for this class was generated from the following file: