BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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:
graphene::db::secondary_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
 
- Public Member Functions inherited from graphene::db::secondary_index
virtual ~secondary_index ()=default
 

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 68 of file proposal_object.hpp.

Member Function Documentation

◆ about_to_modify()

void graphene::chain::required_approval_index::about_to_modify ( const object before)
overridevirtual

Reimplemented from graphene::db::secondary_index.

Definition at line 129 of file proposal_object.cpp.

◆ object_inserted()

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

Reimplemented from graphene::db::secondary_index.

Definition at line 60 of file proposal_object.cpp.

◆ object_modified()

void graphene::chain::required_approval_index::object_modified ( const object after)
overridevirtual

Reimplemented from graphene::db::secondary_index.

Definition at line 136 of file proposal_object.cpp.

◆ object_removed()

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

Reimplemented from graphene::db::secondary_index.

Definition at line 87 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 76 of file proposal_object.hpp.


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