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

This secondary index will allow a reverse lookup of all accounts that have been referred by a particular account. More...

#include <account_object.hpp>

Inheritance diagram for graphene::chain::account_referrer_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 > > referred_by
 

Detailed Description

This secondary index will allow a reverse lookup of all accounts that have been referred by a particular account.

Definition at line 332 of file account_object.hpp.

Member Function Documentation

◆ about_to_modify()

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

Definition at line 265 of file account_object.cpp.

◆ object_inserted()

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

Definition at line 259 of file account_object.cpp.

◆ object_modified()

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

Definition at line 268 of file account_object.cpp.

◆ object_removed()

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

Definition at line 262 of file account_object.cpp.

Member Data Documentation

◆ referred_by

map< account_id_type, set<account_id_type> > graphene::chain::account_referrer_index::referred_by

maps the referrer to the set of accounts that they have referred

Definition at line 341 of file account_object.hpp.


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