|
Electroneum
|
Helper for grouping typical LMDB DBI options when key and value are fixed types. More...
#include <table.h>


Public Types | |
| using | key_type = K |
| using | value_type = V |
Public Member Functions | |
| constexpr | basic_table (const char *name, unsigned flags=0, MDB_cmp_func value_cmp=nullptr) noexcept |
Public Member Functions inherited from lmdb::table | |
| expect< MDB_dbi > | open (MDB_txn &write_txn) const noexcept |
Static Public Member Functions | |
| static constexpr unsigned | compute_flags (const unsigned flags) noexcept |
| template<typename U , typename F = U, std::size_t offset = 0> | |
| static expect< F > | get_value (MDB_val value) noexcept |
| template<typename D > | |
| static expect< key_stream< K, V, D > > | get_key_stream (std::unique_ptr< MDB_cursor, D > cur) noexcept |
| template<typename D > | |
| static expect< value_stream< V, D > > | get_value_stream (K const &key, std::unique_ptr< MDB_cursor, D > cur) noexcept |
Additional Inherited Members | |
Public Attributes inherited from lmdb::table | |
| char const *const | name |
| const unsigned | flags |
| MDB_cmp_func *const | key_cmp |
| MDB_cmp_func *const | value_cmp |
Helper for grouping typical LMDB DBI options when key and value are fixed types.
| using lmdb::basic_table< K, V >::key_type = K |
| using lmdb::basic_table< K, V >::value_type = V |
|
inlineexplicitnoexcept |
Definition at line 38 of file table.h.

|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
cur != nullptr. | cur | Active cursor on table. Returned in object on success, otherwise destroyed. |
cur or an empty key_stream. Definition at line 78 of file table.h.

|
inlinestaticnoexcept |
| U | must be same as V; used for sanity checking. |
| F | is the type within U that is being extracted. |
| offset | to F within U. |
F and offset to retrieve a specific field, use ELECTRONEUM_FIELD macro in src/lmdb/util.h which calculates the offset automatically.F at offset within value which has type U. Definition at line 55 of file table.h.

|
inlinestaticnoexcept |
cur != nullptr. | cur | Active cursor on table. Returned in object on success, otherwise destroyed. |
key in the table linked to cur or an empty value_stream. Definition at line 103 of file table.h.
