NCBI C++ ToolKit
|
<lmdb++.h> - C++11 wrapper for LMDB. More...
Classes | |
class | error |
Base class for LMDB exception conditions. More... | |
class | logic_error |
Base class for logic error conditions. More... | |
class | fatal_error |
Base class for fatal error conditions. More... | |
class | runtime_error |
Base class for runtime error conditions. More... | |
class | key_exist_error |
Exception class for `MDB_KEYEXIST` errors. More... | |
class | not_found_error |
Exception class for `MDB_NOTFOUND` errors. More... | |
class | corrupted_error |
Exception class for `MDB_CORRUPTED` errors. More... | |
class | panic_error |
Exception class for `MDB_PANIC` errors. More... | |
class | version_mismatch_error |
Exception class for `MDB_VERSION_MISMATCH` errors. More... | |
class | map_full_error |
Exception class for `MDB_MAP_FULL` errors. More... | |
class | bad_dbi_error |
Exception class for `MDB_BAD_DBI` errors. More... | |
class | val |
Wrapper class for `MDB_val` structures. More... | |
class | env |
Resource class for `MDB_env*` handles. More... | |
class | txn |
Resource class for `MDB_txn*` handles. More... | |
class | dbi |
Resource class for `MDB_dbi` handles. More... | |
class | cursor |
Resource class for `MDB_cursor*` handles. More... | |
Typedefs | |
using | mode = mdb_mode_t |
<lmdb++.h> - C++11 wrapper for LMDB.
typedef mdb_mode_t lmdb::mode |
|
inlinestaticnoexcept |
Definition at line 845 of file lmdb++.h.
References mdb_cursor_close().
Referenced by lmdb::cursor::close().
|
inlinestaticnoexcept |
Definition at line 914 of file lmdb++.h.
References mdb_cursor_close().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 927 of file lmdb++.h.
References count, mdb_cursor_count(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 996 of file lmdb++.h.
References count, mdb_cursor_count(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestaticnoexcept |
Definition at line 874 of file lmdb++.h.
References mdb_cursor_dbi().
Referenced by lmdb::cursor::dbi().
|
inlinestaticnoexcept |
Definition at line 943 of file lmdb++.h.
References mdb_cursor_dbi().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 914 of file lmdb++.h.
References flags, mdb_cursor_del(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 983 of file lmdb++.h.
References flags, mdb_cursor_del(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 883 of file lmdb++.h.
References data, ncbi::grid::netcache::search::fields::key, mdb_cursor_get(), MDB_NOTFOUND, MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::cursor::get().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 952 of file lmdb++.h.
References data, ncbi::grid::netcache::search::fields::key, mdb_cursor_get(), MDB_NOTFOUND, MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 832 of file lmdb++.h.
References mdb_cursor_open(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::cursor::open().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 901 of file lmdb++.h.
References mdb_cursor_open(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 899 of file lmdb++.h.
References data, flags, ncbi::grid::netcache::search::fields::key, mdb_cursor_put(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 968 of file lmdb++.h.
References data, flags, ncbi::grid::netcache::search::fields::key, mdb_cursor_put(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 854 of file lmdb++.h.
References mdb_cursor_renew(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::cursor::renew().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 923 of file lmdb++.h.
References mdb_cursor_renew(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestaticnoexcept |
Definition at line 866 of file lmdb++.h.
References mdb_cursor_txn().
Referenced by lmdb::cursor::txn().
|
inlinestaticnoexcept |
Definition at line 935 of file lmdb++.h.
References mdb_cursor_txn().
Definition at line 686 of file lmdb++.h.
References mdb_dbi_close().
Definition at line 755 of file lmdb++.h.
References mdb_dbi_close().
|
inlinestatic |
true | if the key/value pair was removed |
false | if the key wasn't found |
Definition at line 801 of file lmdb++.h.
References data, ncbi::grid::netcache::search::fields::key, mdb_del(), MDB_NOTFOUND, MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::dbi::del().
|
inlinestatic |
true | if the key/value pair was removed |
false | if the key wasn't found |
Definition at line 870 of file lmdb++.h.
References data, ncbi::grid::netcache::search::fields::key, mdb_del(), MDB_NOTFOUND, MDB_SUCCESS, and lmdb::error::raise().
Definition at line 695 of file lmdb++.h.
References mdb_drop(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::dbi::drop().
Definition at line 764 of file lmdb++.h.
References mdb_drop(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 673 of file lmdb++.h.
References flags, mdb_dbi_flags(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::dbi::flags().
lmdb::error | on failure |
Definition at line 742 of file lmdb++.h.
References flags, mdb_dbi_flags(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
true | if the key/value pair was retrieved |
false | if the key wasn't found |
Definition at line 766 of file lmdb++.h.
References data, ncbi::grid::netcache::search::fields::key, mdb_get(), MDB_NOTFOUND, MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::dbi::get().
|
inlinestatic |
true | if the key/value pair was retrieved |
false | if the key wasn't found |
Definition at line 835 of file lmdb++.h.
References data, ncbi::grid::netcache::search::fields::key, mdb_get(), MDB_NOTFOUND, MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 644 of file lmdb++.h.
References flags, mdb_dbi_open(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::dbi::open().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 713 of file lmdb++.h.
References flags, mdb_dbi_open(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
true | if the key/value pair was inserted |
false | if the key already existed |
Definition at line 852 of file lmdb++.h.
References data, flags, ncbi::grid::netcache::search::fields::key, MDB_KEYEXIST, mdb_put(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
true | if the key/value pair was inserted |
false | if the key already existed |
Definition at line 783 of file lmdb++.h.
References data, flags, ncbi::grid::netcache::search::fields::key, MDB_KEYEXIST, mdb_put(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by CWriteDB_LMDB::InsertVolumesInfo(), lmdb::dbi::put(), CWriteDB_LMDB::x_CommitTransaction(), and CWriteDB_TaxID::x_CommitTransaction().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 709 of file lmdb++.h.
References mdb_set_compare(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::dbi::set_compare().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 778 of file lmdb++.h.
References mdb_set_compare(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 723 of file lmdb++.h.
References mdb_set_dupsort(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 792 of file lmdb++.h.
References mdb_set_dupsort(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 751 of file lmdb++.h.
References ctx, mdb_set_relctx(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 820 of file lmdb++.h.
References ctx, mdb_set_relctx(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 737 of file lmdb++.h.
References mdb_set_relfunc(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 806 of file lmdb++.h.
References mdb_set_relfunc(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 659 of file lmdb++.h.
References mdb_stat(), MDB_SUCCESS, lmdb::error::raise(), and result.
Referenced by CSeqDBLMDB::GetVolumesInfo(), and lmdb::dbi::stat().
lmdb::error | on failure |
Definition at line 728 of file lmdb++.h.
References mdb_stat(), MDB_SUCCESS, lmdb::error::raise(), and result.
Definition at line 381 of file lmdb++.h.
References mdb_env_close().
Referenced by lmdb::env::close(), lmdb::env::create(), and main().
Definition at line 450 of file lmdb++.h.
References mdb_env_close().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 304 of file lmdb++.h.
References flags, mdb_env_copy(), mdb_env_copy2(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 373 of file lmdb++.h.
References flags, mdb_env_copy(), mdb_env_copy2(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 324 of file lmdb++.h.
References flags, mdb_env_copyfd(), mdb_env_copyfd2(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 393 of file lmdb++.h.
References flags, mdb_env_copyfd(), mdb_env_copyfd2(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 276 of file lmdb++.h.
References mdb_env_create(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::env::create().
lmdb::error | on failure |
Definition at line 345 of file lmdb++.h.
References mdb_env_create(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 430 of file lmdb++.h.
References mdb_env_get_fd(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 499 of file lmdb++.h.
References mdb_env_get_fd(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 404 of file lmdb++.h.
References flags, mdb_env_get_flags(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 473 of file lmdb++.h.
References flags, mdb_env_get_flags(), MDB_SUCCESS, and lmdb::error::raise().
Definition at line 494 of file lmdb++.h.
References assert, and mdb_env_get_maxkeysize().
Definition at line 563 of file lmdb++.h.
References assert, and mdb_env_get_maxkeysize().
lmdb::error | on failure |
Definition at line 469 of file lmdb++.h.
References count, mdb_env_get_maxreaders(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 538 of file lmdb++.h.
References count, mdb_env_get_maxreaders(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 417 of file lmdb++.h.
References mdb_env_get_path(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 486 of file lmdb++.h.
References mdb_env_get_path(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 356 of file lmdb++.h.
References mdb_env_info(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by CWriteDB_TaxID::x_IncreaseEnvMapSize(), and CWriteDB_LMDB::x_IncreaseEnvMapSize().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 425 of file lmdb++.h.
References mdb_env_info(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 288 of file lmdb++.h.
References flags, mdb_env_open(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::env::open().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 357 of file lmdb++.h.
References flags, mdb_env_open(), MDB_SUCCESS, and lmdb::error::raise().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 390 of file lmdb++.h.
References flags, mdb_env_set_flags(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::env::create(), and lmdb::env::set_flags().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 459 of file lmdb++.h.
References flags, mdb_env_set_flags(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 443 of file lmdb++.h.
References mdb_env_set_mapsize(), MDB_SUCCESS, lmdb::error::raise(), and ncbi::grid::netcache::search::fields::size.
Referenced by lmdb::env::set_mapsize().
lmdb::error | on failure |
Definition at line 512 of file lmdb++.h.
References mdb_env_set_mapsize(), MDB_SUCCESS, lmdb::error::raise(), and ncbi::grid::netcache::search::fields::size.
lmdb::error | on failure |
Definition at line 482 of file lmdb++.h.
References count, mdb_env_set_maxdbs(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::env::set_max_dbs().
lmdb::error | on failure |
Definition at line 551 of file lmdb++.h.
References count, mdb_env_set_maxdbs(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 456 of file lmdb++.h.
References count, mdb_env_set_maxreaders(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::env::set_max_readers().
lmdb::error | on failure |
Definition at line 525 of file lmdb++.h.
References count, mdb_env_set_maxreaders(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 509 of file lmdb++.h.
References ctx, mdb_env_set_userctx(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 578 of file lmdb++.h.
References ctx, mdb_env_set_userctx(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 343 of file lmdb++.h.
References mdb_env_stat(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by CWriteDB_TaxID::x_IncreaseEnvMapSize(), and CWriteDB_LMDB::x_IncreaseEnvMapSize().
lmdb::error | on failure |
Definition at line 412 of file lmdb++.h.
References mdb_env_stat(), MDB_SUCCESS, and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 369 of file lmdb++.h.
References mdb_env_sync(), MDB_SUCCESS, and lmdb::error::raise().
Referenced by lmdb::env::sync().
lmdb::error | on failure |
Definition at line 438 of file lmdb++.h.
References mdb_env_sync(), MDB_SUCCESS, and lmdb::error::raise().
Definition at line 594 of file lmdb++.h.
References mdb_txn_abort().
Referenced by lmdb::txn::abort(), and main().
Definition at line 663 of file lmdb++.h.
References mdb_txn_abort().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 550 of file lmdb++.h.
References flags, MDB_SUCCESS, mdb_txn_begin(), and lmdb::error::raise().
Referenced by lmdb::txn::begin().
|
inlinestatic |
lmdb::error | on failure |
Definition at line 619 of file lmdb++.h.
References flags, MDB_SUCCESS, mdb_txn_begin(), and lmdb::error::raise().
lmdb::error | on failure |
Definition at line 583 of file lmdb++.h.
References MDB_SUCCESS, mdb_txn_commit(), and lmdb::error::raise().
Referenced by lmdb::txn::commit().
lmdb::error | on failure |
Definition at line 652 of file lmdb++.h.
References MDB_SUCCESS, mdb_txn_commit(), and lmdb::error::raise().
Definition at line 633 of file lmdb++.h.
References mdb_txn_env().
lmdb::error | on failure |
Definition at line 611 of file lmdb++.h.
References MDB_SUCCESS, mdb_txn_renew(), and lmdb::error::raise().
Referenced by lmdb::txn::renew().
lmdb::error | on failure |
Definition at line 680 of file lmdb++.h.
References MDB_SUCCESS, mdb_txn_renew(), and lmdb::error::raise().
Definition at line 602 of file lmdb++.h.
References mdb_txn_reset().
Referenced by lmdb::txn::reset().
Definition at line 671 of file lmdb++.h.
References mdb_txn_reset().