MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
Iteration over the contents of a skip list 更多...
#include <ob_skiplist.h>
Public 成员函数 | |
Iterator (const ObSkipList *list) | |
Initialize an iterator over the specified list. 更多... | |
bool | valid () const |
Returns true iff the iterator is positioned at a valid node. | |
const Key & | key () const |
Returns the key at the current position. REQUIRES: valid() | |
void | next () |
Advance to the next entry in the list. REQUIRES: valid() | |
void | prev () |
Advances to the previous position. REQUIRES: valid() | |
void | seek (const Key &target) |
Advance to the first entry with a key >= target | |
void | seek_to_first () |
Position at the first entry in list. 更多... | |
void | seek_to_last () |
Position at the last entry in list. 更多... | |
Private 属性 | |
const ObSkipList * | list_ |
Node * | node_ |
Iteration over the contents of a skip list
|
inlineexplicit |
Initialize an iterator over the specified list.
|
inline |
Position at the first entry in list.
|
inline |
Position at the last entry in list.