Scorum
Public Types | Public Member Functions | List of all members
scorum::chain::comment_service_i Struct Referenceabstract

#include <comment.hpp>

Inheritance diagram for scorum::chain::comment_service_i:
scorum::chain::base_service_i< comment_object > scorum::chain::dbs_service_base< comment_service_i > scorum::chain::dbs_comment

Public Types

using comment_refs_type = std::vector< typename base_service_i::object_cref_type >
 
using checker_type = std::function< bool(const comment_object &)>
 
- Public Types inherited from scorum::chain::base_service_i< comment_object >
using object_type = comment_object
 
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 comment_object & get (const comment_id_type &comment_id) const =0
 
virtual const comment_object & get (const account_name_type &author, const std::string &permlink) const =0
 
virtual comment_refs_type get_by_cashout_time (const fc::time_point_sec &until) const =0
 
virtual comment_refs_type get_by_create_time (const fc::time_point_sec &until, const checker_type &) const =0
 
virtual bool is_exists (const account_name_type &author, const std::string &permlink) const =0
 
virtual comment_refs_type get_children (const account_name_type &parent_author, const std::string &parent_permlink) const =0
 
virtual void set_rewarded_flag (const comment_object &comment)=0
 
- Public Member Functions inherited from scorum::chain::base_service_i< comment_object >
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

Definition at line 9 of file comment.hpp.

Member Typedef Documentation

◆ checker_type

using scorum::chain::comment_service_i::checker_type = std::function<bool(const comment_object&)>

Definition at line 21 of file comment.hpp.

◆ comment_refs_type

Definition at line 17 of file comment.hpp.

Member Function Documentation

◆ get() [1/2]

virtual const comment_object& scorum::chain::comment_service_i::get ( const account_name_type author,
const std::string &  permlink 
) const
pure virtual

Implemented in scorum::chain::dbs_comment.

◆ get() [2/2]

virtual const comment_object& scorum::chain::comment_service_i::get ( const comment_id_type comment_id) const
pure virtual

Implemented in scorum::chain::dbs_comment.

◆ get_by_cashout_time()

virtual comment_refs_type scorum::chain::comment_service_i::get_by_cashout_time ( const fc::time_point_sec &  until) const
pure virtual

Implemented in scorum::chain::dbs_comment.

◆ get_by_create_time()

virtual comment_refs_type scorum::chain::comment_service_i::get_by_create_time ( const fc::time_point_sec &  until,
const checker_type  
) const
pure virtual

Implemented in scorum::chain::dbs_comment.

◆ get_children()

virtual comment_refs_type scorum::chain::comment_service_i::get_children ( const account_name_type parent_author,
const std::string &  parent_permlink 
) const
pure virtual

Implemented in scorum::chain::dbs_comment.

◆ is_exists()

virtual bool scorum::chain::comment_service_i::is_exists ( const account_name_type author,
const std::string &  permlink 
) const
pure virtual

Implemented in scorum::chain::dbs_comment.

◆ set_rewarded_flag()

virtual void scorum::chain::comment_service_i::set_rewarded_flag ( const comment_object &  comment)
pure virtual

Implemented in scorum::chain::dbs_comment.


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