18 template <
typename FromIdType>
27 const auto it_end = idx.cend();
30 ret.push_back(std::cref(*it));
37 template <
typename FromIdType> uint16_t
total_percent(
const FromIdType& from)
const
89 FC_CAPTURE_AND_RETHROW((from)(to))
99 FC_CAPTURE_AND_RETHROW((from)(to))
109 FC_CAPTURE_AND_RETHROW((from)(to))
119 FC_CAPTURE_AND_RETHROW((from)(to))
125 return _impl->get_all(from);
130 return _impl->total_percent(from);
135 return _impl->total_percent(from);
tracks the blockchain state in an extensible manner
dba::db_index & db_impl()
virtual const object_type & get() const override
virtual bool is_exists() const override
dbs_withdraw_scorumpower_route::withdraw_scorumpower_route_refs_type get_all(const FromIdType &from) const
uint16_t total_percent(const FromIdType &from) const
dbs_withdraw_scorumpower_route_impl(database &db)
~dbs_withdraw_scorumpower_route()
dbs_withdraw_scorumpower_route(database &db)
virtual uint16_t total_percent(const account_id_type &from) const override
virtual withdraw_scorumpower_route_refs_type get_all(const withdrawable_id_type &from) const override
bool is_equal_withdrawable_id(const withdrawable_id_type &a, const withdrawable_id_type &b)
fc::static_variant< account_id_type, dev_committee_id_type > withdrawable_id_type
shared_multi_index_container< withdraw_scorumpower_route_object, indexed_by< ordered_unique< tag< by_id >, member< withdraw_scorumpower_route_object, withdraw_scorumpower_route_id_type, &withdraw_scorumpower_route_object::id > >, ordered_unique< tag< by_withdraw_route >, composite_key< withdraw_scorumpower_route_object, member< withdraw_scorumpower_route_object, withdrawable_id_type, &withdraw_scorumpower_route_object::from_id >, member< withdraw_scorumpower_route_object, withdrawable_id_type, &withdraw_scorumpower_route_object::to_id > >, composite_key_compare< less_for_withdrawable_id, less_for_withdrawable_id > >, ordered_unique< tag< by_destination >, composite_key< withdraw_scorumpower_route_object, member< withdraw_scorumpower_route_object, withdrawable_id_type, &withdraw_scorumpower_route_object::to_id >, member< withdraw_scorumpower_route_object, withdraw_scorumpower_route_id_type, &withdraw_scorumpower_route_object::id > >, composite_key_compare< less_for_withdrawable_id, std::less< withdraw_scorumpower_route_id_type > > > > > withdraw_scorumpower_route_index
std::vector< std::reference_wrapper< const withdraw_scorumpower_route_object > > withdraw_scorumpower_route_refs_type