26#include "transaction.h"
27#include "cursorcommon.h"
31template <
class K,
class V>
46 std::pair<K, V>
first();
47 std::pair<K, V>
last();
48 std::pair<K, V>
next();
49 std::pair<K, V>
prev();
50 std::pair<K, V>
current()
const;
51 bool set(
const K& target);
53 void first(K& key, V& value);
54 void last(K& key, V& value);
55 void next(K& key, V& value);
56 void prev(K& key, V& value);
57 void current(K& key, V& value)
const;
60 void operateCursorRead(K& key, V& value, MDB_cursor_op operation,
const std::string& methodName,
const std::string& operationName)
const;
CursorCommon()
Creates a empty class.
Definition cursorcommon.cpp:41
std::pair< K, V > first()
Queries the first element in the storage.
Definition cursor.hpp:233
void drop()
Turns cursor into an empty one, releasing resources.
Definition cursor.hpp:113
~Cursor()
Destroys this cursor.
Definition cursor.hpp:101
std::pair< K, V > prev()
Queries the previous element from the storage.
Definition cursor.hpp:299
std::pair< K, V > last()
Queries the last element in the storage.
Definition cursor.hpp:251
std::pair< K, V > current() const
Returns current cursor element from the storage.
Definition cursor.hpp:319
bool set(const K &target)
Sets cursors to the defined position.
Definition cursor.hpp:338
Cursor()
Creates an empty cursor.
Definition cursor.hpp:62
std::pair< K, V > next()
Queries the next element from the storage.
Definition cursor.hpp:275
This is a basic key value storage.
Definition storage.h:38