Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::chain::required_approval_index Class Reference

tracks all of the proposal objects that requrie approval of an individual account. More...

#include <proposal_object.hpp>

Inheritance diagram for graphene::chain::required_approval_index:

Public Member Functions

virtual void object_inserted (const object &obj) override
 
virtual void object_removed (const object &obj) override
 
virtual void about_to_modify (const object &before) override
 
virtual void object_modified (const object &after) override
 
void remove (account_id_type a, proposal_id_type p)
 

Public Attributes

map< account_id_type, set< proposal_id_type > > _account_to_proposals
 

Detailed Description

tracks all of the proposal objects that requrie approval of an individual account.

This is a secondary index on the proposal_index

Note
the set of required approvals is constant

Definition at line 71 of file proposal_object.hpp.

Member Function Documentation

◆ about_to_modify()

virtual void graphene::chain::required_approval_index::about_to_modify ( const object &  before)
inlineoverridevirtual

Definition at line 76 of file proposal_object.hpp.

◆ object_inserted()

void graphene::chain::required_approval_index::object_inserted ( const object &  obj)
overridevirtual

Definition at line 50 of file proposal_object.cpp.

◆ object_modified()

virtual void graphene::chain::required_approval_index::object_modified ( const object &  after)
inlineoverridevirtual

Definition at line 77 of file proposal_object.hpp.

◆ object_removed()

void graphene::chain::required_approval_index::object_removed ( const object &  obj)
overridevirtual

Definition at line 76 of file proposal_object.cpp.

◆ remove()

void graphene::chain::required_approval_index::remove ( account_id_type  a,
proposal_id_type  p 
)

Definition at line 65 of file proposal_object.cpp.

Member Data Documentation

◆ _account_to_proposals

map<account_id_type, set<proposal_id_type> > graphene::chain::required_approval_index::_account_to_proposals

Definition at line 81 of file proposal_object.hpp.


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