BitShares-Core  6.1.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Friends | List of all members
graphene::api_helper_indexes::next_object_ids_index Class Reference

This secondary index tracks the next ID of all object types. More...

#include <api_helper_indexes.hpp>

Inheritance diagram for graphene::api_helper_indexes::next_object_ids_index:

Public Member Functions

object_id_type get_next_id (uint8_t space_id, uint8_t type_id) const
- Public Member Functions inherited from graphene::db::secondary_index
virtual ~secondary_index ()=default
virtual void object_inserted (const object &obj)
virtual void object_removed (const object &obj)
virtual void about_to_modify (const object &before)
virtual void object_modified (const object &after)


class api_helper_indexes

Detailed Description

This secondary index tracks the next ID of all object types.

This is implemented with flat_map considering there aren't too many object types in the system thus the performance would be acceptable.

Definition at line 79 of file api_helper_indexes.hpp.

Member Function Documentation

◆ get_next_id()

object_id_type graphene::api_helper_indexes::next_object_ids_index::get_next_id ( uint8_t  space_id,
uint8_t  type_id 
) const

Definition at line 250 of file api_helper_indexes.cpp.

Friends And Related Function Documentation

◆ api_helper_indexes

friend class api_helper_indexes

Definition at line 85 of file api_helper_indexes.hpp.

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