BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Protected Attributes | List of all members
graphene::db::base_primary_index Class Reference

#include <index.hpp>

Inheritance diagram for graphene::db::base_primary_index:
graphene::db::primary_index< DerivedIndex, DirectBits > graphene::db::primary_index< graphene::db::generic_index >

Public Member Functions

 base_primary_index (object_database &db)
 
void save_undo (const object &obj)
 
void on_add (const object &obj)
 
void on_remove (const object &obj)
 
void on_modify (const object &obj)
 
template<typename T , typename... Args>
T * add_secondary_index (Args...args)
 
template<typename T >
const T & get_secondary_index () const
 

Protected Attributes

vector< shared_ptr< index_observer > > _observers
 
vector< unique_ptr< secondary_index > > _sindex
 

Detailed Description

Defines the common implementation

Definition at line 152 of file index.hpp.

Constructor & Destructor Documentation

graphene::db::base_primary_index::base_primary_index ( object_database db)
inline

Definition at line 155 of file index.hpp.

Member Function Documentation

template<typename T , typename... Args>
T* graphene::db::base_primary_index::add_secondary_index ( Args...  args)
inline

Definition at line 170 of file index.hpp.

template<typename T >
const T& graphene::db::base_primary_index::get_secondary_index ( ) const
inline

Definition at line 177 of file index.hpp.

void graphene::db::base_primary_index::on_add ( const object obj)

called just after the object is added

Definition at line 32 of file index.cpp.

void graphene::db::base_primary_index::on_modify ( const object obj)

called just after obj is modified

Definition at line 41 of file index.cpp.

void graphene::db::base_primary_index::on_remove ( const object obj)

called just before obj is removed

Definition at line 38 of file index.cpp.

void graphene::db::base_primary_index::save_undo ( const object obj)

called just before obj is modified

Definition at line 29 of file index.cpp.

Member Data Documentation

vector< shared_ptr<index_observer> > graphene::db::base_primary_index::_observers
protected

Definition at line 188 of file index.hpp.

vector< unique_ptr<secondary_index> > graphene::db::base_primary_index::_sindex
protected

Definition at line 189 of file index.hpp.


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