BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Attributes | Static Public Attributes | List of all members
graphene::chain::buyback_object Class Reference

#include <buyback_object.hpp>

Inheritance diagram for graphene::chain::buyback_object:
graphene::db::abstract_object< buyback_object > graphene::db::object

Public Attributes

asset_id_type asset_to_buy
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Static Public Attributes

static constexpr uint8_t space_id = implementation_ids
 
static constexpr uint8_t type_id = impl_buyback_object_type
 

Additional Inherited Members

- Public Member Functions inherited from graphene::db::abstract_object< buyback_object >
virtual unique_ptr< objectclone () const
 these methods are implemented for derived classes by inheriting abstract_object<DerivedClass> More...
 
virtual void move_from (object &obj)
 
virtual variant to_variant () const
 
virtual vector< char > pack () const
 
- Public Member Functions inherited from graphene::db::object
 object ()
 
virtual ~object ()
 

Detailed Description

buyback_authority_object only exists to help with a specific indexing problem. We want to be able to iterate over all assets that have a buyback program. However, assets which have a buyback program are very rare. So rather than indexing asset_object by the buyback field (requiring additional bookkeeping for every asset), we instead maintain a buyback_object pointing to each asset which has buyback (requiring additional bookkeeping only for every asset which has buyback).

This class is an implementation detail.

Definition at line 43 of file buyback_object.hpp.

Member Data Documentation

asset_id_type graphene::chain::buyback_object::asset_to_buy

Definition at line 49 of file buyback_object.hpp.

constexpr uint8_t graphene::chain::buyback_object::space_id = implementation_ids
static

Definition at line 46 of file buyback_object.hpp.

constexpr uint8_t graphene::chain::buyback_object::type_id = impl_buyback_object_type
static

Definition at line 47 of file buyback_object.hpp.


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