Kagome
Polkadot Runtime Engine in C++17
|
#include <rocksdb_cursor.hpp>
Public Member Functions | |
~RocksDBCursor () override=default | |
RocksDBCursor (std::shared_ptr< rocksdb::Iterator > it) | |
outcome::result< bool > | seekFirst () override |
Same as std::begin(...);. More... | |
outcome::result< bool > | seek (const BufferView &key) override |
outcome::result< bool > | seekLast () override |
Same as std::rbegin(...);, e.g. points to the last valid element. More... | |
bool | isValid () const override |
Is the cursor in a valid state? More... | |
outcome::result< void > | next () override |
Make step forward. More... | |
std::optional< Buffer > | key () const override |
Getter for the key of the element currently pointed at. More... | |
std::optional< Buffer > | value () const override |
Getter for value of the element currently pointed at. More... | |
Public Member Functions inherited from kagome::storage::face::MapCursor< K, V, KView > | |
virtual | ~MapCursor ()=default |
virtual outcome::result< bool > | seek (const KView &key)=0 |
Find given key and seek iterator to this key. More... | |
Private Attributes | |
std::shared_ptr< rocksdb::Iterator > | i_ |
Definition at line 14 of file rocksdb_cursor.hpp.
|
overridedefault |
|
explicit |
Definition at line 12 of file rocksdb_cursor.cpp.
|
overridevirtual |
Is the cursor in a valid state?
Implements kagome::storage::face::MapCursor< K, V, KView >.
Definition at line 30 of file rocksdb_cursor.cpp.
|
overridevirtual |
Getter for the key of the element currently pointed at.
Implements kagome::storage::face::MapCursor< K, V, KView >.
Definition at line 39 of file rocksdb_cursor.cpp.
|
overridevirtual |
Make step forward.
Implements kagome::storage::face::MapCursor< K, V, KView >.
Definition at line 34 of file rocksdb_cursor.cpp.
|
override |
Definition at line 20 of file rocksdb_cursor.cpp.
|
overridevirtual |
Same as std::begin(...);.
Implements kagome::storage::face::MapCursor< K, V, KView >.
Definition at line 15 of file rocksdb_cursor.cpp.
|
overridevirtual |
Same as std::rbegin(...);, e.g. points to the last valid element.
Implements kagome::storage::face::MapCursor< K, V, KView >.
Definition at line 25 of file rocksdb_cursor.cpp.
|
overridevirtual |
Getter for value of the element currently pointed at.
Implements kagome::storage::face::MapCursor< K, V, KView >.
Definition at line 44 of file rocksdb_cursor.cpp.
|
private |
Definition at line 35 of file rocksdb_cursor.hpp.