|
Electroneum
|
Namespaces | |
| stream | |
Classes | |
| struct | abort_txn |
| struct | abort_write_txn |
| struct | basic_table |
| Helper for grouping typical LMDB DBI options when key and value are fixed types. More... | |
| struct | close_cursor |
| struct | close_env |
| Closes LMDB environment handle. More... | |
| struct | context |
| Context given to LMDB. More... | |
| class | database |
| Manages a LMDB environment for safe memory-map resizing. Thread-safe. More... | |
| struct | identity |
Prevent instantiation of std::underlying_type<T> when T is not enum. More... | |
| class | key_iterator |
| class | key_stream |
| struct | release_read_txn |
| struct | table |
| Helper for grouping typical LMDB DBI options. More... | |
| class | value_iterator |
| class | value_stream |
Typedefs | |
| using | environment = std::unique_ptr< MDB_env, close_env > |
| using | suspended_txn = std::unique_ptr< MDB_txn, abort_txn > |
| using | read_txn = std::unique_ptr< MDB_txn, release_read_txn > |
| using | write_txn = std::unique_ptr< MDB_txn, abort_write_txn > |
| template<typename T > | |
| using | native_type = typename std::conditional< std::is_enum< T >::value, std::underlying_type< T >, identity< T > >::type::type |
Enumerations | |
| enum | error : int |
| Tracks LMDB error codes. More... | |
Functions | |
| expect< environment > | open_environment (const char *path, MDB_dbi max_dbs) noexcept |
| std::error_category const & | error_category () noexcept |
| std::error_code | make_error_code (error value) noexcept |
| template<typename K , typename V > | |
| bool | operator== (key_iterator< K, V > const &lhs, key_iterator< K, V > const &rhs) noexcept |
| template<typename K , typename V > | |
| bool | operator!= (key_iterator< K, V > const &lhs, key_iterator< K, V > const &rhs) noexcept |
| template<typename D > | |
| expect< std::unique_ptr< MDB_cursor, D > > | open_cursor (MDB_txn &txn, MDB_dbi tbl) noexcept |
| template<typename T , typename U = typename std::underlying_type<T>::type> | |
| constexpr U | to_native (T value) noexcept |
| template<typename T > | |
| MDB_val | to_val (T &&value) noexcept |
| constexpr epee::span< const std::uint8_t > | to_byte_span (MDB_val value) noexcept |
| template<typename T , std::size_t offset = 0> | |
| int | less (MDB_val const *left, MDB_val const *right) noexcept |
| template<typename T , std::size_t offset = 0> | |
| int | compare (MDB_val const *left, MDB_val const *right) noexcept |
| template<typename T , typename F , std::size_t offset> | |
| bool | operator== (value_iterator< T, F, offset > const &lhs, value_iterator< T, F, offset > const &rhs) noexcept |
| template<typename T , typename F , std::size_t offset> | |
| bool | operator!= (value_iterator< T, F, offset > const &lhs, value_iterator< T, F, offset > const &rhs) noexcept |
| using lmdb::environment = typedef std::unique_ptr<MDB_env, close_env> |
Definition at line 51 of file database.h.
| using lmdb::native_type = typedef typename std::conditional< std::is_enum<T>::value, std::underlying_type<T>, identity<T> >::type::type |
Get the native type for enums, or return T unchanged. Useful for merging generated machine code for templated functions that use enums with identical size-widths without relying on aggressive identical comdat folding (ICF) support in linker. So with enum defintion enum class enum_foo : unsigned long {}; will always yield assert(&func_foo<unsigned long> == &func_foo<native_type<enum_foo>>).
| using lmdb::read_txn = typedef std::unique_ptr<MDB_txn, release_read_txn> |
Definition at line 93 of file transaction.h.
| using lmdb::suspended_txn = typedef std::unique_ptr<MDB_txn, abort_txn> |
Definition at line 92 of file transaction.h.
| using lmdb::write_txn = typedef std::unique_ptr<MDB_txn, abort_write_txn> |
Definition at line 94 of file transaction.h.
|
strong |
|
inlinenoexcept |
A LMDB comparison function that uses std::memcmp.
T is !epee::has_padding
| offset | to T within the value. |
std::memcmp over the value. Definition at line 135 of file util.h.

|
noexcept |
|
inlinenoexcept |
A LMDB comparison function that uses operator<.
| T | has a defined operator< . |
| offset | to T within the value. |
left < right, 1 if right < left, and 0 otherwise. Definition at line 111 of file util.h.


|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 83 of file transaction.h.

|
noexcept |
path with a max of max_dbs tables. Definition at line 78 of file database.cpp.

|
inlinenoexcept |
Definition at line 259 of file key_stream.h.
|
inlinenoexcept |
Definition at line 282 of file value_stream.h.
|
inlinenoexcept |
Definition at line 252 of file key_stream.h.
|
inlinenoexcept |
Definition at line 275 of file value_stream.h.
|
inlinenoexcept |
|
inlinenoexcept |
value bytes in a LMDB MDB_val object. Definition at line 88 of file util.h.
