Scorum
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
scorum::chain::dbs_advertising_budget< budget_type_v > Class Template Reference

#include <budgets.hpp>

Inheritance diagram for scorum::chain::dbs_advertising_budget< budget_type_v >:
scorum::chain::dbs_service_base< budget_service_traits< budget_type_v >::service_type > scorum::chain::dbs_base

Public Types

using budgets_type = typename adv_budget_service_i< budget_type_v >::budgets_type
 
- Public Types inherited from scorum::chain::dbs_service_base< budget_service_traits< budget_type_v >::service_type >
using base_service_type = dbs_service_base
 
using modifier_type = typename service_interface::modifier_type
 
using object_type = typename service_interface::object_type
 
using object_cref_type = typename service_interface::object_cref_type
 

Public Member Functions

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_date, fc::time_point_sec end_date, const std::string &json_metadata) override
 
const adv_budget_object< budget_type_v > & get (const oid< adv_budget_object< budget_type_v >> &id) const override
 
const adv_budget_object< budget_type_v > & get (const uuid_type &uuid) const override
 
bool is_exists (const uuid_type &uuid) const override
 
const adv_budget_object< budget_type_v > * find (const oid< adv_budget_object< budget_type_v >> &id) const override
 
budgets_type get_budgets () const override
 
budgets_type get_budgets (const account_name_type &owner) const override
 
budgets_type get_pending_budgets () const override
 
budgets_type get_top_budgets (const fc::time_point_sec &until, uint16_t limit) const override
 
budgets_type get_top_budgets (const fc::time_point_sec &until) const override
 
std::set< std::string > lookup_budget_owners (const std::string &lower_bound_owner_name, uint32_t limit) const override
 
asset allocate_cash (const adv_budget_object< budget_type_v > &budget) override
 
void update_pending_payouts (const adv_budget_object< budget_type_v > &budget, const asset &owner_incoming, const asset &budget_outgoing) override
 
asset perform_pending_payouts (const budgets_type &budgets) override
 
void finish_budget (const uuid_type &uuid) override
 
budgets_type get_empty_budgets () const override
 
- Public Member Functions inherited from scorum::chain::dbs_service_base< budget_service_traits< budget_type_v >::service_type >
 dbs_service_base (dba::db_index &db)
 
virtual const object_typecreate (const modifier_type &modifier) override
 
virtual void update (const modifier_type &modifier) override
 
virtual void update (const object_type &o, const modifier_type &modifier) override
 
virtual void remove () override
 
virtual void remove (const object_type &o) override
 
virtual void remove_all (const std::vector< object_cref_type > &os) override
 
virtual bool is_exists () const override
 
virtual const object_typeget () const override
 
const object_typeget_by (const Key &arg) const
 
const object_typefind_by (const Key &arg) const
 
void foreach_by (Call &&call) const
 
std::vector< object_cref_typeget_range_by (LowerBounder lower, UpperBounder upper) const
 
std::vector< object_cref_typeget_filtered_range_by (LowerBounder lower, UpperBounder upper, UnaryPredicate filter) const
 
- Public Member Functions inherited from scorum::chain::dbs_base
virtual ~dbs_base ()
 

Protected Member Functions

 dbs_advertising_budget (database &db)
 
- Protected Member Functions inherited from scorum::chain::dbs_base
 dbs_base ()=delete
 
 dbs_base (dbs_base &&)=delete
 
 dbs_base (dba::db_index &)
 
time_point_sec head_block_time ()
 
dba::db_indexdb_impl ()
 
const dba::db_indexdb_impl () const
 

Friends

class dbservice_dbs_factory
 

Additional Inherited Members

- Protected Types inherited from scorum::chain::dbs_base
typedef dbs_base _base_type
 

Detailed Description

template<budget_type budget_type_v>
class scorum::chain::dbs_advertising_budget< budget_type_v >

Definition at line 102 of file budgets.hpp.

Member Typedef Documentation

◆ budgets_type

template<budget_type budget_type_v>
using scorum::chain::dbs_advertising_budget< budget_type_v >::budgets_type = typename adv_budget_service_i<budget_type_v>::budgets_type

Definition at line 112 of file budgets.hpp.

Constructor & Destructor Documentation

◆ dbs_advertising_budget()

template<budget_type budget_type_v>
scorum::chain::dbs_advertising_budget< budget_type_v >::dbs_advertising_budget ( database db)
explicitprotected

Definition at line 96 of file budgets.cpp.

Member Function Documentation

◆ allocate_cash()

template<budget_type budget_type_v>
asset scorum::chain::dbs_advertising_budget< budget_type_v >::allocate_cash ( const adv_budget_object< budget_type_v > &  budget)
override

Definition at line 286 of file budgets.cpp.

◆ create_budget()

template<budget_type budget_type_v>
const adv_budget_object< budget_type_v > & scorum::chain::dbs_advertising_budget< budget_type_v >::create_budget ( const uuid_type uuid,
const account_name_type owner,
const asset balance,
fc::time_point_sec  start_date,
fc::time_point_sec  end_date,
const std::string &  json_metadata 
)
override

Definition at line 105 of file budgets.cpp.

◆ find()

template<budget_type budget_type_v>
const adv_budget_object< budget_type_v > * scorum::chain::dbs_advertising_budget< budget_type_v >::find ( const oid< adv_budget_object< budget_type_v >> &  id) const
override

Definition at line 179 of file budgets.cpp.

◆ finish_budget()

template<budget_type budget_type_v>
void scorum::chain::dbs_advertising_budget< budget_type_v >::finish_budget ( const uuid_type uuid)
override

Definition at line 338 of file budgets.cpp.

◆ get() [1/2]

template<budget_type budget_type_v>
const adv_budget_object< budget_type_v > & scorum::chain::dbs_advertising_budget< budget_type_v >::get ( const oid< adv_budget_object< budget_type_v >> &  id) const
override

Definition at line 149 of file budgets.cpp.

◆ get() [2/2]

template<budget_type budget_type_v>
const adv_budget_object< budget_type_v > & scorum::chain::dbs_advertising_budget< budget_type_v >::get ( const uuid_type uuid) const
override

Definition at line 159 of file budgets.cpp.

◆ get_budgets() [1/2]

template<budget_type budget_type_v>
dbs_advertising_budget< budget_type_v >::budgets_type scorum::chain::dbs_advertising_budget< budget_type_v >::get_budgets
override

Definition at line 189 of file budgets.cpp.

◆ get_budgets() [2/2]

template<budget_type budget_type_v>
dbs_advertising_budget< budget_type_v >::budgets_type scorum::chain::dbs_advertising_budget< budget_type_v >::get_budgets ( const account_name_type owner) const
override

Definition at line 263 of file budgets.cpp.

◆ get_empty_budgets()

template<budget_type budget_type_v>
dbs_advertising_budget< budget_type_v >::budgets_type scorum::chain::dbs_advertising_budget< budget_type_v >::get_empty_budgets
override

Definition at line 356 of file budgets.cpp.

◆ get_pending_budgets()

template<budget_type budget_type_v>
dbs_advertising_budget< budget_type_v >::budgets_type scorum::chain::dbs_advertising_budget< budget_type_v >::get_pending_budgets
override

Definition at line 274 of file budgets.cpp.

◆ get_top_budgets() [1/2]

template<budget_type budget_type_v>
dbs_advertising_budget< budget_type_v >::budgets_type scorum::chain::dbs_advertising_budget< budget_type_v >::get_top_budgets ( const fc::time_point_sec &  until) const
override

Definition at line 228 of file budgets.cpp.

◆ get_top_budgets() [2/2]

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

Definition at line 200 of file budgets.cpp.

◆ is_exists()

template<budget_type budget_type_v>
bool scorum::chain::dbs_advertising_budget< budget_type_v >::is_exists ( const uuid_type uuid) const
override

Definition at line 168 of file budgets.cpp.

◆ lookup_budget_owners()

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

Definition at line 239 of file budgets.cpp.

◆ perform_pending_payouts()

template<budget_type budget_type_v>
asset scorum::chain::dbs_advertising_budget< budget_type_v >::perform_pending_payouts ( const budgets_type budgets)
override

Definition at line 315 of file budgets.cpp.

◆ update_pending_payouts()

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

Definition at line 299 of file budgets.cpp.

Friends And Related Function Documentation

◆ dbservice_dbs_factory

template<budget_type budget_type_v>
friend class dbservice_dbs_factory
friend

Definition at line 104 of file budgets.hpp.


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