Scorum
|
#include <db_accessor.hpp>
Public Types | |
using | object_type = TObject |
using | modifier_type = utils::function_view< void(object_type &)> |
using | predicate_type = utils::function_view< bool(const object_type &)> |
using | object_cref_type = std::reference_wrapper< const TObject > |
Public Member Functions | |
db_accessor (db_index &db_idx) | |
size_t | size () const |
const object_type & | create (modifier_type modifier) |
const object_type & | update (modifier_type modifier) |
const object_type & | update (const object_type &o, modifier_type modifier) |
void | remove () |
void | remove (const object_type &o) |
void | remove_all (utils::bidir_range< const object_type > items) |
bool | is_empty () const |
const object_type & | get () const |
template<class IndexBy , class Key > | |
const object_type & | get_by (const Key &arg) const |
template<class IndexBy , class Key > | |
const object_type * | find_by (const Key &arg) const |
template<class IndexBy , class Key > | |
bool | is_exists_by (const Key &arg) const |
template<typename IndexBy , typename TKey > | |
utils::bidir_range< const object_type > | get_range_by (const TKey &key) const |
template<typename IndexBy , typename TKeyLhs , typename TKeyRhs = TKeyLhs> | |
utils::bidir_range< const object_type > | get_range_by (const detail::bound< TKeyLhs > &lower, const detail::bound< TKeyRhs > &upper) const |
template<typename IndexBy , typename TKey > | |
utils::bidir_range< const object_type > | get_range_by (unbounded_placeholder lower, const detail::bound< TKey > &upper) const |
template<typename IndexBy , typename TKey > | |
utils::bidir_range< const object_type > | get_range_by (const detail::bound< TKey > &lower, unbounded_placeholder upper) const |
template<typename IndexBy , typename TKey = index_key_type<TObject, IndexBy>> | |
utils::bidir_range< const object_type > | get_range_by (unbounded_placeholder lower, unbounded_placeholder upper) const |
template<typename IndexBy > | |
utils::bidir_range< const object_type > | get_all_by () const |
Definition at line 177 of file db_accessor.hpp.
using scorum::chain::dba::db_accessor< TObject >::modifier_type = utils::function_view<void(object_type&)> |
Definition at line 187 of file db_accessor.hpp.
using scorum::chain::dba::db_accessor< TObject >::object_cref_type = std::reference_wrapper<const TObject> |
Definition at line 189 of file db_accessor.hpp.
using scorum::chain::dba::db_accessor< TObject >::object_type = TObject |
Definition at line 186 of file db_accessor.hpp.
using scorum::chain::dba::db_accessor< TObject >::predicate_type = utils::function_view<bool(const object_type&)> |
Definition at line 188 of file db_accessor.hpp.
|
inlineexplicit |
Definition at line 180 of file db_accessor.hpp.
|
inline |
Definition at line 196 of file db_accessor.hpp.
|
inline |
Definition at line 241 of file db_accessor.hpp.
|
inline |
Definition at line 231 of file db_accessor.hpp.
|
inline |
Definition at line 286 of file db_accessor.hpp.
|
inline |
Definition at line 236 of file db_accessor.hpp.
|
inline |
Definition at line 274 of file db_accessor.hpp.
|
inline |
Definition at line 260 of file db_accessor.hpp.
|
inline |
Definition at line 254 of file db_accessor.hpp.
|
inline |
Definition at line 267 of file db_accessor.hpp.
|
inline |
Definition at line 281 of file db_accessor.hpp.
|
inline |
Definition at line 226 of file db_accessor.hpp.
|
inline |
Definition at line 246 of file db_accessor.hpp.
|
inline |
Definition at line 211 of file db_accessor.hpp.
|
inline |
Definition at line 216 of file db_accessor.hpp.
|
inline |
Definition at line 221 of file db_accessor.hpp.
|
inline |
Definition at line 191 of file db_accessor.hpp.
|
inline |
Definition at line 206 of file db_accessor.hpp.
|
inline |
Definition at line 201 of file db_accessor.hpp.