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

#include <comment_vote.hpp>

Inheritance diagram for scorum::chain::comment_vote_service_i:
scorum::chain::base_service_i< comment_vote_object > scorum::chain::dbs_service_base< comment_vote_service_i > scorum::chain::dbs_comment_vote

Public Types

using comment_vote_refs_type = std::vector< std::reference_wrapper< const comment_vote_object > >
 
- Public Types inherited from scorum::chain::base_service_i< comment_vote_object >
using object_type = comment_vote_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_vote_object & get (const comment_id_type &comment_id, const account_id_type &voter_id) const =0
 
virtual comment_vote_refs_type get_by_comment (const comment_id_type &comment_id) const =0
 
virtual comment_vote_refs_type get_by_comment_weight_voter (const comment_id_type &comment_id) const =0
 
virtual bool is_exists (const comment_id_type &comment_id, const account_id_type &voter_id) const =0
 
virtual void remove_by_comment (const comment_id_type &comment_id)=0
 
- Public Member Functions inherited from scorum::chain::base_service_i< comment_vote_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_vote.hpp.

Member Typedef Documentation

◆ comment_vote_refs_type

using scorum::chain::comment_vote_service_i::comment_vote_refs_type = std::vector<std::reference_wrapper<const comment_vote_object> >

Definition at line 17 of file comment_vote.hpp.

Member Function Documentation

◆ get()

virtual const comment_vote_object& scorum::chain::comment_vote_service_i::get ( const comment_id_type comment_id,
const account_id_type voter_id 
) const
pure virtual

◆ get_by_comment()

virtual comment_vote_refs_type scorum::chain::comment_vote_service_i::get_by_comment ( const comment_id_type comment_id) const
pure virtual

◆ get_by_comment_weight_voter()

virtual comment_vote_refs_type scorum::chain::comment_vote_service_i::get_by_comment_weight_voter ( const comment_id_type comment_id) const
pure virtual

◆ is_exists()

virtual bool scorum::chain::comment_vote_service_i::is_exists ( const comment_id_type comment_id,
const account_id_type voter_id 
) const
pure virtual

◆ remove_by_comment()

virtual void scorum::chain::comment_vote_service_i::remove_by_comment ( const comment_id_type comment_id)
pure virtual

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