Scorum
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
scorum::chain::dba Namespace Reference

Namespaces

 cxx17
 
 detail
 

Classes

class  db_accessor
 
struct  db_accessor_factory
 
struct  param_placeholder
 
struct  unbounded_placeholder
 
struct  is_hashed_idx
 
struct  is_hashed_idx< TIdx, cxx17::void_t< typename std::decay_t< TIdx >::hasher > >
 

Typedefs

template<typename TObject >
using modifier_type = utils::function_view< void(TObject &)>
 
template<typename TObject >
using predicate_type = utils::function_view< bool(const TObject &)>
 
template<typename TObject >
using cref_type = std::reference_wrapper< const TObject >
 
template<typename TObject , typename TIndexBy >
using index_key_type = typename boost::multi_index::index< typename chainbase::get_index_type< TObject >::type, TIndexBy >::type::key_type
 
using db_index = chainbase::database_index< chainbase::segment_manager >
 

Enumerations

enum  no_key
 

Functions

template<typename TValue >
auto operator< (const param_placeholder &, const TValue &val)
 
template<typename TValue >
auto operator> (const TValue &val, const param_placeholder &)
 
template<typename TValue >
auto operator<= (const param_placeholder &, const TValue &val)
 
template<typename TValue >
auto operator>= (const TValue &val, const param_placeholder &)
 
template<typename TValue >
auto operator> (const param_placeholder &, const TValue &val)
 
template<typename TValue >
auto operator< (const TValue &val, const param_placeholder &)
 
template<typename TValue >
auto operator>= (const param_placeholder &, const TValue &val)
 
template<typename TValue >
auto operator<= (const TValue &val, const param_placeholder &)
 

Variables

const param_placeholder _x = param_placeholder{}
 
const unbounded_placeholder unbounded = unbounded_placeholder{}
 

Typedef Documentation

◆ cref_type

template<typename TObject >
using scorum::chain::dba::cref_type = typedef std::reference_wrapper<const TObject>

Definition at line 21 of file db_accessor.hpp.

◆ db_index

using scorum::chain::dba::db_index = typedef chainbase::database_index<chainbase::segment_manager>

Definition at line 12 of file dba.hpp.

◆ index_key_type

template<typename TObject , typename TIndexBy >
using scorum::chain::dba::index_key_type = typedef typename boost::multi_index::index<typename chainbase::get_index_type<TObject>::type, TIndexBy>::type::key_type

Definition at line 23 of file db_accessor_helpers.hpp.

◆ modifier_type

template<typename TObject >
using scorum::chain::dba::modifier_type = typedef utils::function_view<void(TObject&)>

Definition at line 19 of file db_accessor.hpp.

◆ predicate_type

template<typename TObject >
using scorum::chain::dba::predicate_type = typedef utils::function_view<bool(const TObject&)>

Definition at line 20 of file db_accessor.hpp.

Enumeration Type Documentation

◆ no_key

Definition at line 15 of file db_accessor_helpers.hpp.

Function Documentation

◆ operator<() [1/2]

template<typename TValue >
auto scorum::chain::dba::operator< ( const param_placeholder ,
const TValue &  val 
)

Definition at line 54 of file db_accessor_helpers.hpp.

◆ operator<() [2/2]

template<typename TValue >
auto scorum::chain::dba::operator< ( const TValue &  val,
const param_placeholder  
)

Definition at line 79 of file db_accessor_helpers.hpp.

◆ operator<=() [1/2]

template<typename TValue >
auto scorum::chain::dba::operator<= ( const param_placeholder ,
const TValue &  val 
)

Definition at line 64 of file db_accessor_helpers.hpp.

◆ operator<=() [2/2]

template<typename TValue >
auto scorum::chain::dba::operator<= ( const TValue &  val,
const param_placeholder  
)

Definition at line 89 of file db_accessor_helpers.hpp.

◆ operator>() [1/2]

template<typename TValue >
auto scorum::chain::dba::operator> ( const param_placeholder ,
const TValue &  val 
)

Definition at line 74 of file db_accessor_helpers.hpp.

◆ operator>() [2/2]

template<typename TValue >
auto scorum::chain::dba::operator> ( const TValue &  val,
const param_placeholder  
)

Definition at line 59 of file db_accessor_helpers.hpp.

◆ operator>=() [1/2]

template<typename TValue >
auto scorum::chain::dba::operator>= ( const param_placeholder ,
const TValue &  val 
)

Definition at line 84 of file db_accessor_helpers.hpp.

◆ operator>=() [2/2]

template<typename TValue >
auto scorum::chain::dba::operator>= ( const TValue &  val,
const param_placeholder  
)

Definition at line 69 of file db_accessor_helpers.hpp.

Variable Documentation

◆ _x

const param_placeholder scorum::chain::dba::_x = param_placeholder{}

Definition at line 19 of file db_accessor_helpers.hpp.

◆ unbounded

const unbounded_placeholder scorum::chain::dba::unbounded = unbounded_placeholder{}

Definition at line 20 of file db_accessor_helpers.hpp.