Scorum
Public Types | Public Member Functions | List of all members
scorum::chain::adv_budget_service_i< budget_type_v > Struct Template Referenceabstract

#include <budgets.hpp>

Inheritance diagram for scorum::chain::adv_budget_service_i< budget_type_v >:
scorum::chain::base_service_i< adv_budget_object< budget_type_v > >

Public Types

using budget_cref_type = typename base_service_i< adv_budget_object< budget_type_v > >::object_cref_type
 
using budgets_type = std::vector< budget_cref_type >
 
- Public Types inherited from scorum::chain::base_service_i< adv_budget_object< budget_type_v > >
using object_type = adv_budget_object< budget_type_v >
 
using modifier_type = std::function< void(object_type &)>
 
using call_type = std::function< void(const object_type &)>
 
using object_cref_type = std::reference_wrapper< const object_type >
 

Public Member Functions

virtual const adv_budget_object< budget_type_v > & create_budget (const uuid_type &uuid, const account_name_type &owner, const asset &balance, fc::time_point_sec start, fc::time_point_sec end, const std::string &json_metadata)=0
 
virtual const adv_budget_object< budget_type_v > & get (const oid< adv_budget_object< budget_type_v >> &) const =0
 
virtual const adv_budget_object< budget_type_v > & get (const uuid_type &uuid) const =0
 
virtual bool is_exists (const uuid_type &uuid) const =0
 
virtual const adv_budget_object< budget_type_v > * find (const oid< adv_budget_object< budget_type_v >> &) const =0
 
virtual budgets_type get_budgets () const =0
 
virtual budgets_type get_pending_budgets () const =0
 
virtual budgets_type get_top_budgets (const fc::time_point_sec &until, uint16_t limit) const =0
 
virtual budgets_type get_top_budgets (const fc::time_point_sec &until) const =0
 
virtual std::set< std::string > lookup_budget_owners (const std::string &lower_bound_owner_name, uint32_t limit) const =0
 
virtual budgets_type get_budgets (const account_name_type &owner) const =0
 
virtual asset allocate_cash (const adv_budget_object< budget_type_v > &budget)=0
 
virtual void update_pending_payouts (const adv_budget_object< budget_type_v > &budget, const asset &owner_incoming, const asset &budget_outgoing)=0
 
virtual asset perform_pending_payouts (const budgets_type &budgets)=0
 
virtual void finish_budget (const uuid_type &uuid)=0
 
virtual budgets_type get_empty_budgets () const =0
 
- Public Member Functions inherited from scorum::chain::base_service_i< adv_budget_object< budget_type_v > >
virtual ~base_service_i ()
 
virtual const object_typecreate (const modifier_type &modifier)=0
 
virtual void update (const modifier_type &modifier)=0
 
virtual void update (const object_type &o, const modifier_type &modifier)=0
 
virtual void remove ()=0
 
virtual void remove (const object_type &o)=0
 
virtual void remove_all (const std::vector< object_cref_type > &os)=0
 
virtual bool is_exists () const=0
 
virtual const object_typeget () const=0
 

Detailed Description

template<budget_type budget_type_v>
struct scorum::chain::adv_budget_service_i< budget_type_v >

Definition at line 44 of file budgets.hpp.

Member Typedef Documentation

◆ budget_cref_type

template<budget_type budget_type_v>
using scorum::chain::adv_budget_service_i< budget_type_v >::budget_cref_type = typename base_service_i<adv_budget_object<budget_type_v> >::object_cref_type

Definition at line 49 of file budgets.hpp.

◆ budgets_type

template<budget_type budget_type_v>
using scorum::chain::adv_budget_service_i< budget_type_v >::budgets_type = std::vector<budget_cref_type>

Definition at line 50 of file budgets.hpp.

Member Function Documentation

◆ allocate_cash()

template<budget_type budget_type_v>
virtual asset scorum::chain::adv_budget_service_i< budget_type_v >::allocate_cash ( const adv_budget_object< budget_type_v > &  budget)
pure virtual

◆ create_budget()

template<budget_type budget_type_v>
virtual const adv_budget_object<budget_type_v>& scorum::chain::adv_budget_service_i< budget_type_v >::create_budget ( const uuid_type uuid,
const account_name_type owner,
const asset balance,
fc::time_point_sec  start,
fc::time_point_sec  end,
const std::string &  json_metadata 
)
pure virtual

◆ find()

template<budget_type budget_type_v>
virtual const adv_budget_object<budget_type_v>* scorum::chain::adv_budget_service_i< budget_type_v >::find ( const oid< adv_budget_object< budget_type_v >> &  ) const
pure virtual

◆ finish_budget()

template<budget_type budget_type_v>
virtual void scorum::chain::adv_budget_service_i< budget_type_v >::finish_budget ( const uuid_type uuid)
pure virtual

◆ get() [1/2]

template<budget_type budget_type_v>
virtual const adv_budget_object<budget_type_v>& scorum::chain::adv_budget_service_i< budget_type_v >::get ( const oid< adv_budget_object< budget_type_v >> &  ) const
pure virtual

◆ get() [2/2]

template<budget_type budget_type_v>
virtual const adv_budget_object<budget_type_v>& scorum::chain::adv_budget_service_i< budget_type_v >::get ( const uuid_type uuid) const
pure virtual

◆ get_budgets() [1/2]

template<budget_type budget_type_v>
virtual budgets_type scorum::chain::adv_budget_service_i< budget_type_v >::get_budgets ( ) const
pure virtual

◆ get_budgets() [2/2]

template<budget_type budget_type_v>
virtual budgets_type scorum::chain::adv_budget_service_i< budget_type_v >::get_budgets ( const account_name_type owner) const
pure virtual

◆ get_empty_budgets()

template<budget_type budget_type_v>
virtual budgets_type scorum::chain::adv_budget_service_i< budget_type_v >::get_empty_budgets ( ) const
pure virtual

◆ get_pending_budgets()

template<budget_type budget_type_v>
virtual budgets_type scorum::chain::adv_budget_service_i< budget_type_v >::get_pending_budgets ( ) const
pure virtual

◆ get_top_budgets() [1/2]

template<budget_type budget_type_v>
virtual budgets_type scorum::chain::adv_budget_service_i< budget_type_v >::get_top_budgets ( const fc::time_point_sec &  until) const
pure virtual

◆ get_top_budgets() [2/2]

template<budget_type budget_type_v>
virtual budgets_type scorum::chain::adv_budget_service_i< budget_type_v >::get_top_budgets ( const fc::time_point_sec &  until,
uint16_t  limit 
) const
pure virtual

◆ is_exists()

template<budget_type budget_type_v>
virtual bool scorum::chain::adv_budget_service_i< budget_type_v >::is_exists ( const uuid_type uuid) const
pure virtual

◆ lookup_budget_owners()

template<budget_type budget_type_v>
virtual std::set<std::string> scorum::chain::adv_budget_service_i< budget_type_v >::lookup_budget_owners ( const std::string &  lower_bound_owner_name,
uint32_t  limit 
) const
pure virtual

◆ perform_pending_payouts()

template<budget_type budget_type_v>
virtual asset scorum::chain::adv_budget_service_i< budget_type_v >::perform_pending_payouts ( const budgets_type budgets)
pure virtual

◆ update_pending_payouts()

template<budget_type budget_type_v>
virtual void scorum::chain::adv_budget_service_i< budget_type_v >::update_pending_payouts ( const adv_budget_object< budget_type_v > &  budget,
const asset owner_incoming,
const asset budget_outgoing 
)
pure virtual

The documentation for this struct was generated from the following files: