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

#include <object_id.hpp>

Public Member Functions

 object_id_type (uint8_t s, uint8_t t, uint64_t i)
 
 object_id_type ()
 
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++ (int)
 
object_id_typeoperator++ ()
 
template<typename T >
bool is () const
 
template<typename T >
as () const
 
 operator std::string () const
 

Public Attributes

uint64_t number
 

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, int delta)
 
object_id_type operator+ (const object_id_type &a, int64_t delta)
 
size_t hash_value (object_id_type v)
 

Detailed Description

Definition at line 38 of file object_id.hpp.

Constructor & Destructor Documentation

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

Definition at line 40 of file object_id.hpp.

graphene::db::object_id_type::object_id_type ( )
inline

Definition at line 45 of file object_id.hpp.

Member Function Documentation

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

Definition at line 77 of file object_id.hpp.

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

Definition at line 50 of file object_id.hpp.

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

Definition at line 71 of file object_id.hpp.

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

Definition at line 51 of file object_id.hpp.

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

Definition at line 83 of file object_id.hpp.

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

Definition at line 52 of file object_id.hpp.

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

Definition at line 59 of file object_id.hpp.

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

Definition at line 60 of file object_id.hpp.

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

Definition at line 47 of file object_id.hpp.

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

Definition at line 49 of file object_id.hpp.

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

Definition at line 48 of file object_id.hpp.

Friends And Related Function Documentation

size_t hash_value ( object_id_type  v)
friend

Definition at line 68 of file object_id.hpp.

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

Definition at line 55 of file object_id.hpp.

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

Definition at line 62 of file object_id.hpp.

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

Definition at line 65 of file object_id.hpp.

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

Definition at line 56 of file object_id.hpp.

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

Definition at line 54 of file object_id.hpp.

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

Definition at line 57 of file object_id.hpp.

Member Data Documentation

uint64_t graphene::db::object_id_type::number

Definition at line 88 of file object_id.hpp.


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