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

This secondary index will allow a reverse lookup of all accounts that a particular key or account is an potential signing authority. More...

#include <account_object.hpp>

Inheritance diagram for graphene::chain::account_member_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 Attributes

map< account_id_type, set< account_id_type > > account_to_account_memberships
 
map< public_key_type, set< account_id_type >, key_compare > account_to_key_memberships
 
map< address, set< account_id_type > > account_to_address_memberships
 

Protected Member Functions

set< account_id_typeget_account_members (const account_object &a) const
 
set< public_key_type, key_compare > get_key_members (const account_object &a) const
 
set< addressget_address_members (const account_object &a) const
 

Protected Attributes

set< account_id_typebefore_account_members
 
set< public_key_type, key_compare > before_key_members
 
set< addressbefore_address_members
 

Detailed Description

This secondary index will allow a reverse lookup of all accounts that a particular key or account is an potential signing authority.

Definition at line 293 of file account_object.hpp.

Member Function Documentation

◆ about_to_modify()

void graphene::chain::account_member_index::about_to_modify ( const object &  before)
overridevirtual

Definition at line 181 of file account_object.cpp.

◆ get_account_members()

set< account_id_type > graphene::chain::account_member_index::get_account_members ( const account_object a) const
protected

Definition at line 115 of file account_object.cpp.

◆ get_address_members()

set< address > graphene::chain::account_member_index::get_address_members ( const account_object a) const
protected

Definition at line 134 of file account_object.cpp.

◆ get_key_members()

set< public_key_type, account_member_index::key_compare > graphene::chain::account_member_index::get_key_members ( const account_object a) const
protected

Definition at line 124 of file account_object.cpp.

◆ object_inserted()

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

Definition at line 145 of file account_object.cpp.

◆ object_modified()

void graphene::chain::account_member_index::object_modified ( const object &  after)
overridevirtual

Definition at line 192 of file account_object.cpp.

◆ object_removed()

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

Definition at line 163 of file account_object.cpp.

Member Data Documentation

◆ account_to_account_memberships

map< account_id_type, set<account_id_type> > graphene::chain::account_member_index::account_to_account_memberships

given an account or key, map it to the set of accounts that reference it in an active or owner authority

Definition at line 311 of file account_object.hpp.

◆ account_to_address_memberships

map< address, set<account_id_type> > graphene::chain::account_member_index::account_to_address_memberships

some accounts use address authorities in the genesis block

Definition at line 314 of file account_object.hpp.

◆ account_to_key_memberships

map< public_key_type, set<account_id_type>, key_compare > graphene::chain::account_member_index::account_to_key_memberships

Definition at line 312 of file account_object.hpp.

◆ before_account_members

set<account_id_type> graphene::chain::account_member_index::before_account_members
protected

Definition at line 322 of file account_object.hpp.

◆ before_address_members

set<address> graphene::chain::account_member_index::before_address_members
protected

Definition at line 324 of file account_object.hpp.

◆ before_key_members

set<public_key_type, key_compare> graphene::chain::account_member_index::before_key_members
protected

Definition at line 323 of file account_object.hpp.


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