BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
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:
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 ()
 

Public Attributes

map< account_id_type, set< account_id_type > > account_to_account_memberships
 
map< public_key_type, set< account_id_type >, pubkey_comparatoraccount_to_key_memberships
 
map< address, set< account_id_type > > account_to_address_memberships
 

Protected Member Functions

set< account_id_type > get_account_members (const account_object &a) const
 
set< public_key_type, pubkey_comparatorget_key_members (const account_object &a) const
 
set< addressget_address_members (const account_object &a) const
 

Protected Attributes

set< account_id_type > before_account_members
 
set< public_key_type, pubkey_comparatorbefore_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 321 of file account_object.hpp.

Member Function Documentation

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

Reimplemented from graphene::db::secondary_index.

Definition at line 181 of file account_object.cpp.

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.

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.

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

Definition at line 124 of file account_object.cpp.

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

Reimplemented from graphene::db::secondary_index.

Definition at line 145 of file account_object.cpp.

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

Reimplemented from graphene::db::secondary_index.

Definition at line 192 of file account_object.cpp.

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

Reimplemented from graphene::db::secondary_index.

Definition at line 163 of file account_object.cpp.

Member Data Documentation

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 331 of file account_object.hpp.

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 334 of file account_object.hpp.

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

Definition at line 332 of file account_object.hpp.

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

Definition at line 342 of file account_object.hpp.

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

Definition at line 344 of file account_object.hpp.

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

Definition at line 343 of file account_object.hpp.


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