BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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 ()=default
 

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

Member Function Documentation

◆ about_to_modify()

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

Reimplemented from graphene::db::secondary_index.

Definition at line 175 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 108 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 127 of file account_object.cpp.

◆ get_key_members()

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

Definition at line 117 of file account_object.cpp.

◆ object_inserted()

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

Reimplemented from graphene::db::secondary_index.

Definition at line 137 of file account_object.cpp.

◆ object_modified()

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

Reimplemented from graphene::db::secondary_index.

Definition at line 186 of file account_object.cpp.

◆ object_removed()

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

Reimplemented from graphene::db::secondary_index.

Definition at line 156 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 340 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 343 of file account_object.hpp.

◆ account_to_key_memberships

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

Definition at line 341 of file account_object.hpp.

◆ before_account_members

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

Definition at line 351 of file account_object.hpp.

◆ before_address_members

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

Definition at line 353 of file account_object.hpp.

◆ before_key_members

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

Definition at line 352 of file account_object.hpp.


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