27#include "transaction.h"
28#include "cursorcommon.h"
32template <
class K,
class V>
47 std::pair<K, V>
first();
48 std::pair<K, V>
last();
49 std::pair<K, V>
next();
50 std::pair<K, V>
prev();
51 std::pair<K, V>
current()
const;
52 bool set(
const K& target);
54 void first(K& key, V& value);
55 void last(K& key, V& value);
56 void next(K& key, V& value);
57 void prev(K& key, V& value);
58 void current(K& key, V& value)
const;
61 void operateCursorRead(K& key, V& value, MDB_cursor_op operation, std::string_view methodName, std::string_view 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:236
void drop()
Turns cursor into an empty one, releasing resources.
Definition cursor.hpp:116
std::pair< K, V > prev()
Queries the previous element from the storage.
Definition cursor.hpp:302
std::pair< K, V > last()
Queries the last element in the storage.
Definition cursor.hpp:254
std::pair< K, V > current() const
Returns current cursor element from the storage.
Definition cursor.hpp:322
bool set(const K &target)
Sets cursors to the defined position.
Definition cursor.hpp:341
Cursor()
Creates an empty cursor.
Definition cursor.hpp:62
std::pair< K, V > next()
Queries the next element from the storage.
Definition cursor.hpp:278
This is a basic key value storage.
Definition storage.h:38
Destroys a cache.
Definition base.h:36