BitShares-Core  6.1.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
graphene::db::object_id_type Struct Reference

#include <object_id.hpp>

Public Member Functions

 object_id_type ()=default
 
 object_id_type (uint8_t s, uint8_t t, uint64_t i)
 
void reset (uint8_t s, uint8_t t, uint64_t i)
 
uint8_t space () const
 
uint8_t type () const
 
uint16_t space_type () const
 
uint64_t instance () const
 
bool is_null () const
 
 operator uint64_t () const
 
object_id_typeoperator++ ()
 
template<typename T >
bool is () const
 
template<typename T >
as () const
 
 operator std::string () const
 

Public Attributes

uint64_t number = 0
 

Static Public Attributes

static constexpr uint8_t instance_bits = 48
 
static constexpr uint8_t type_and_instance_bits = 56
 
static constexpr uint64_t one_byte_mask = 0x00ff
 
static constexpr uint64_t max_instance = 0x0000ffffffffffff
 

Friends

bool operator== (const object_id_type &a, const object_id_type &b)
 
bool operator!= (const object_id_type &a, const object_id_type &b)
 
bool operator< (const object_id_type &a, const object_id_type &b)
 
bool operator> (const object_id_type &a, const object_id_type &b)
 
object_id_type operator+ (const object_id_type &a, int64_t delta)
 
size_t hash_value (const object_id_type &v)
 

Detailed Description

Definition at line 30 of file object_id.hpp.

Constructor & Destructor Documentation

◆ object_id_type() [1/2]

graphene::db::object_id_type::object_id_type ( )
default

◆ object_id_type() [2/2]

graphene::db::object_id_type::object_id_type ( uint8_t  s,
uint8_t  t,
uint64_t  i 
)
inline

Definition at line 38 of file object_id.hpp.

Member Function Documentation

◆ as()

template<typename T >
T graphene::db::object_id_type::as ( ) const
inline

Definition at line 73 of file object_id.hpp.

◆ instance()

uint64_t graphene::db::object_id_type::instance ( ) const
inline

Definition at line 49 of file object_id.hpp.

◆ is()

template<typename T >
bool graphene::db::object_id_type::is ( ) const
inline

Definition at line 66 of file object_id.hpp.

◆ is_null()

bool graphene::db::object_id_type::is_null ( ) const
inline

Definition at line 50 of file object_id.hpp.

◆ operator std::string()

graphene::db::object_id_type::operator std::string ( ) const
inlineexplicit

Definition at line 78 of file object_id.hpp.

◆ operator uint64_t()

graphene::db::object_id_type::operator uint64_t ( ) const
inlineexplicit

Definition at line 51 of file object_id.hpp.

◆ operator++()

object_id_type& graphene::db::object_id_type::operator++ ( )
inline

Definition at line 58 of file object_id.hpp.

◆ reset()

void graphene::db::object_id_type::reset ( uint8_t  s,
uint8_t  t,
uint64_t  i 
)
inline

Definition at line 40 of file object_id.hpp.

◆ space()

uint8_t graphene::db::object_id_type::space ( ) const
inline

Definition at line 46 of file object_id.hpp.

◆ space_type()

uint16_t graphene::db::object_id_type::space_type ( ) const
inline

Definition at line 48 of file object_id.hpp.

◆ type()

uint8_t graphene::db::object_id_type::type ( ) const
inline

Definition at line 47 of file object_id.hpp.

Friends And Related Function Documentation

◆ hash_value

size_t hash_value ( const object_id_type v)
friend

Definition at line 63 of file object_id.hpp.

◆ operator!=

bool operator!= ( const object_id_type a,
const object_id_type b 
)
friend

Definition at line 54 of file object_id.hpp.

◆ operator+

object_id_type operator+ ( const object_id_type a,
int64_t  delta 
)
friend

Definition at line 60 of file object_id.hpp.

◆ operator<

bool operator< ( const object_id_type a,
const object_id_type b 
)
friend

Definition at line 55 of file object_id.hpp.

◆ operator==

bool operator== ( const object_id_type a,
const object_id_type b 
)
friend

Definition at line 53 of file object_id.hpp.

◆ operator>

bool operator> ( const object_id_type a,
const object_id_type b 
)
friend

Definition at line 56 of file object_id.hpp.

Member Data Documentation

◆ instance_bits

constexpr uint8_t graphene::db::object_id_type::instance_bits = 48
static

Definition at line 32 of file object_id.hpp.

◆ max_instance

constexpr uint64_t graphene::db::object_id_type::max_instance = 0x0000ffffffffffff
static

Definition at line 35 of file object_id.hpp.

◆ number

uint64_t graphene::db::object_id_type::number = 0

Definition at line 83 of file object_id.hpp.

◆ one_byte_mask

constexpr uint64_t graphene::db::object_id_type::one_byte_mask = 0x00ff
static

Definition at line 34 of file object_id.hpp.

◆ type_and_instance_bits

constexpr uint8_t graphene::db::object_id_type::type_and_instance_bits = 56
static

Definition at line 33 of file object_id.hpp.


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