#include <database_api_helper.hxx>
|
| database_api_helper (graphene::chain::database &db, const application_options *app_options) |
|
| database_api_helper (const graphene::app::application &app) |
|
const account_object * | get_account_from_string (const std::string &name_or_id, bool throw_if_not_found=true) const |
|
const asset_object * | get_asset_from_string (const std::string &symbol_or_id, bool throw_if_not_found=true) const |
|
|
template<typename X > |
auto | make_tuple_if_multiple (X x) const |
|
template<typename... X> |
auto | make_tuple_if_multiple (X... x) const |
|
template<typename T > |
auto | call_end_or_upper_bound (const T &t) const |
|
template<typename T , typename... X> |
auto | call_end_or_upper_bound (const T &t, X... x) const |
|
template<typename OBJ_TYPE , typename OBJ_ID_TYPE , typename INDEX_TYPE , typename T , typename... X> |
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 |
|
Definition at line 28 of file database_api_helper.hxx.
◆ database_api_helper() [1/2]
◆ database_api_helper() [2/2]
◆ call_end_or_upper_bound() [1/2]
template<typename T >
auto graphene::app::database_api_helper::call_end_or_upper_bound |
( |
const T & |
t | ) |
const |
|
inline |
◆ call_end_or_upper_bound() [2/2]
template<typename T , typename... X>
auto graphene::app::database_api_helper::call_end_or_upper_bound |
( |
const T & |
t, |
|
|
X... |
x |
|
) |
| const |
|
inline |
◆ get_account_from_string()
const account_object * graphene::app::database_api_helper::get_account_from_string |
( |
const std::string & |
name_or_id, |
|
|
bool |
throw_if_not_found = true |
|
) |
| const |
◆ get_asset_from_string()
const asset_object * graphene::app::database_api_helper::get_asset_from_string |
( |
const std::string & |
symbol_or_id, |
|
|
bool |
throw_if_not_found = true |
|
) |
| const |
◆ get_objects_by_x()
template<typename OBJ_TYPE , typename OBJ_ID_TYPE , typename INDEX_TYPE , typename T , typename... X>
vector<OBJ_TYPE> graphene::app::database_api_helper::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 |
|
inline |
◆ make_tuple_if_multiple() [1/2]
template<typename X >
auto graphene::app::database_api_helper::make_tuple_if_multiple |
( |
X |
x | ) |
const |
|
inline |
Template functions for simple list_X and get_X_by_T APIs, to reduce duplicate code
Definition at line 49 of file database_api_helper.hxx.
◆ make_tuple_if_multiple() [2/2]
template<typename... X>
auto graphene::app::database_api_helper::make_tuple_if_multiple |
( |
X... |
x | ) |
const |
|
inline |
◆ _app_options
◆ _db
The documentation for this class was generated from the following files: