|
leveldb
|
#include <skiplist.h>

Classes | |
| class | Iterator |
| struct | Node |
Public Member Functions | |
| SkipList (Comparator cmp, Arena *arena) | |
| void | Insert (const Key &key) |
| bool | Contains (const Key &key) const |
Private Types | |
| enum | { kMaxHeight = 12 } |
Private Member Functions | |
| int | GetMaxHeight () const |
| Node * | NewNode (const Key &key, int height) |
| int | RandomHeight () |
| bool | Equal (const Key &a, const Key &b) const |
| bool | KeyIsAfterNode (const Key &key, Node *n) const |
| Node * | FindGreaterOrEqual (const Key &key, Node **prev) const |
| Node * | FindLessThan (const Key &key) const |
| Node * | FindLast () const |
| SkipList (const SkipList &) | |
| void | operator= (const SkipList &) |
Private Attributes | |
| Comparator const | compare_ |
| Arena *const | arena_ |
| Node *const | head_ |
| port::AtomicPointer | max_height_ |
| Random | rnd_ |
Definition at line 41 of file skiplist.h.
|
private |
|
explicit |
Definition at line 325 of file skiplist.h.

|
private |
| bool leveldb::SkipList< Key, Comparator >::Contains | ( | const Key & | key | ) | const |
Definition at line 373 of file skiplist.h.

|
inlineprivate |
Definition at line 120 of file skiplist.h.
|
private |
Definition at line 262 of file skiplist.h.

|
private |
|
private |
|
inlineprivate |
| void leveldb::SkipList< Key, Comparator >::Insert | ( | const Key & | key | ) |
Definition at line 337 of file skiplist.h.

|
private |
|
private |
Definition at line 184 of file skiplist.h.
|
private |

|
private |
Definition at line 243 of file skiplist.h.
|
private |
Definition at line 102 of file skiplist.h.
|
private |
Definition at line 101 of file skiplist.h.
|
private |
Definition at line 104 of file skiplist.h.
|
private |
Definition at line 108 of file skiplist.h.
|
private |
Definition at line 116 of file skiplist.h.
1.8.12