|
Electroneum
|
#include <key_stream.h>
Public Member Functions | |
| key_stream (std::unique_ptr< MDB_cursor, D > cur) | |
Take ownership of cur without changing position. nullptr valid. More... | |
| key_stream (key_stream &&)=default | |
| key_stream (key_stream const &)=delete | |
| ~key_stream ()=default | |
| key_stream & | operator= (key_stream &&)=default |
| key_stream & | operator= (key_stream const &)=delete |
| std::unique_ptr< MDB_cursor, D > | give_cursor () noexcept |
| void | reset () |
| key_iterator< K, V > | make_iterator () const |
| boost::iterator_range< key_iterator< K, V > > | make_range () const |
C++ wrapper for a LMDB read-only cursor on a fixed-sized key K and value V.
| K | key type being stored by each record. |
| V | value type being stored by each record. |
| D | cleanup functor for the cursor; usually unique per db/table. |
Definition at line 188 of file key_stream.h.
|
inlineexplicit |
Take ownership of cur without changing position. nullptr valid.
Definition at line 194 of file key_stream.h.
|
default |
|
delete |
|
default |
|
inlinenoexcept |
Give up ownership of the cursor. make_iterator() and make_range() can still be invoked, but return the empty set.
Definition at line 210 of file key_stream.h.

|
inline |
| std::system_error | if LMDB has unexpected errors. |
.is_end() after the last key. Definition at line 234 of file key_stream.h.

|
inline |
| std::system_error | if LMDB has unexpected errors. |
Definition at line 244 of file key_stream.h.

|
default |
|
delete |
|
inline |
Place the stream back at the first key/value. Newly created iterators will start at the first value again.
make_iterator or make_range. Also invalidates all value_iterators created with key_iterator. Definition at line 223 of file key_stream.h.
