BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
A secondary index that tracks objects in vectors indexed by object id. It is meant for fully (or almost fully) populated indexes only (will fail when loading an object_database with large gaps). More...
#include <index.hpp>
Public Member Functions | |
direct_index () | |
void | object_inserted (const object &obj) override |
void | object_removed (const object &obj) override |
void | about_to_modify (const object &before) override |
void | object_modified (const object &after) override |
template<typename object_id > | |
const Object * | find (const object_id &id) const |
template<typename object_id > | |
const Object & | get (const object_id &id) const |
const Object * | find (const object_id_type &id) const |
Public Member Functions inherited from graphene::db::secondary_index | |
virtual | ~secondary_index ()=default |
A secondary index that tracks objects in vectors indexed by object id. It is meant for fully (or almost fully) populated indexes only (will fail when loading an object_database with large gaps).
WARNING! If any of the methods called on insertion, removal or modification throws, subsequent behaviour is undefined! Such exceptions indicate that this index type is not appropriate for the use-case.
|
inline |
|
inlineoverridevirtual |
Reimplemented from graphene::db::secondary_index.
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Reimplemented from graphene::db::secondary_index.
|
inlineoverridevirtual |
Reimplemented from graphene::db::secondary_index.
|
inlineoverridevirtual |
Reimplemented from graphene::db::secondary_index.