BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
40 bool throw_if_not_found =
true )
const;
44 bool throw_if_not_found =
true )
const;
52 template <
typename... X>
54 {
return std::make_tuple( x... ); }
58 {
return std::end( t ); }
60 template <
typename T,
typename... X>
64 template <
typename OBJ_TYPE,
typename OBJ_ID_TYPE,
typename INDEX_TYPE,
typename T,
typename... X >
67 const INDEX_TYPE& idx,
73 const auto configured_limit =
_app_options->*app_opt_member_ptr;
74 uint64_t limit = olimit.
valid() ? *olimit : configured_limit;
76 "limit can not be greater than ${configured_limit}",
77 (
"configured_limit", configured_limit) );
79 vector<OBJ_TYPE> results;
81 OBJ_ID_TYPE start_obj_id = ostart_id.
valid() ? *ostart_id : OBJ_ID_TYPE();
87 results.reserve( limit );
88 while( lower_itr != upper_itr && results.size() < limit )
90 results.emplace_back( *lower_itr );
const asset_object * get_asset_from_string(const std::string &symbol_or_id, bool throw_if_not_found=true) const
auto call_end_or_upper_bound(const T &t, X... x) const
tracks the blockchain state in an extensible manner
vector< OBJ_TYPE > get_objects_by_x(T application_options::*app_opt_member_ptr, const INDEX_TYPE &idx, const optional< uint32_t > &olimit, const optional< OBJ_ID_TYPE > &ostart_id, X... x) const
const application_options * _app_options
auto call_end_or_upper_bound(const T &t) const
tracks the parameters of an asset
database_api_helper(graphene::chain::database &db, const application_options *app_options)
This class represents an account on the object graph.
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
graphene::chain::database & _db
provides stack-based nullable value similar to boost::optional
auto make_tuple_if_multiple(X... x) const
auto make_tuple_if_multiple(X x) const
const account_object * get_account_from_string(const std::string &name_or_id, bool throw_if_not_found=true) const