BitShares-Core  5.0.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< SpaceID, TypeID > Struct Template Reference

#include <object_id.hpp>

Public Member Functions

 object_id ()=default
 
 object_id (unsigned_int i)
 
 object_id (uint64_t i)
 
 object_id (object_id_type id)
 
 operator object_id_type () const
 
 operator uint64_t () const
 
template<typename DB >
auto operator() (const DB &db) const -> const decltype(db.get(*this))&
 

Public Attributes

unsigned_int instance
 

Static Public Attributes

static constexpr uint8_t space_id = SpaceID
 
static constexpr uint8_t type_id = TypeID
 

Friends

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

Detailed Description

template<uint8_t SpaceID, uint8_t TypeID>
struct graphene::db::object_id< SpaceID, TypeID >

Definition at line 108 of file object_id.hpp.

Constructor & Destructor Documentation

template<uint8_t SpaceID, uint8_t TypeID>
graphene::db::object_id< SpaceID, TypeID >::object_id ( )
default
template<uint8_t SpaceID, uint8_t TypeID>
graphene::db::object_id< SpaceID, TypeID >::object_id ( unsigned_int  i)
inline

Definition at line 114 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
graphene::db::object_id< SpaceID, TypeID >::object_id ( uint64_t  i)
inlineexplicit

Definition at line 115 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
graphene::db::object_id< SpaceID, TypeID >::object_id ( object_id_type  id)
inline

Definition at line 119 of file object_id.hpp.

Member Function Documentation

template<uint8_t SpaceID, uint8_t TypeID>
graphene::db::object_id< SpaceID, TypeID >::operator object_id_type ( ) const
inline

Definition at line 126 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
graphene::db::object_id< SpaceID, TypeID >::operator uint64_t ( ) const
inlineexplicit

Definition at line 127 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
template<typename DB >
auto graphene::db::object_id< SpaceID, TypeID >::operator() ( const DB &  db) const -> const decltype(db.get(*this))&
inline

Definition at line 130 of file object_id.hpp.

Friends And Related Function Documentation

template<uint8_t SpaceID, uint8_t TypeID>
size_t hash_value ( object_id< SpaceID, TypeID >  v)
friend

Definition at line 146 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator!= ( const object_id< SpaceID, TypeID > &  a,
const object_id< SpaceID, TypeID > &  b 
)
friend

Definition at line 133 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator!= ( const object_id_type a,
const object_id< SpaceID, TypeID > &  b 
)
friend

Definition at line 135 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator!= ( const object_id< SpaceID, TypeID > &  a,
const object_id_type b 
)
friend

Definition at line 137 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator!= ( const object_id< SpaceID, TypeID > &  a,
const fc::unsigned_int b 
)
friend

Definition at line 139 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator!= ( const fc::unsigned_int a,
const object_id< SpaceID, TypeID > &  b 
)
friend

Definition at line 141 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
object_id operator+ ( const object_id< SpaceID, TypeID >  a,
int64_t  delta 
)
friend

Definition at line 123 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
object_id operator+ ( const object_id< SpaceID, TypeID >  a,
int  delta 
)
friend

Definition at line 124 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator< ( const object_id< SpaceID, TypeID > &  a,
const object_id< SpaceID, TypeID > &  b 
)
friend

Definition at line 143 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator== ( const object_id< SpaceID, TypeID > &  a,
const object_id< SpaceID, TypeID > &  b 
)
friend

Definition at line 132 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator== ( const object_id_type a,
const object_id< SpaceID, TypeID > &  b 
)
friend

Definition at line 134 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator== ( const object_id< SpaceID, TypeID > &  a,
const object_id_type b 
)
friend

Definition at line 136 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator== ( const object_id< SpaceID, TypeID > &  a,
const fc::unsigned_int b 
)
friend

Definition at line 138 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator== ( const fc::unsigned_int a,
const object_id< SpaceID, TypeID > &  b 
)
friend

Definition at line 140 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
bool operator> ( const object_id< SpaceID, TypeID > &  a,
const object_id< SpaceID, TypeID > &  b 
)
friend

Definition at line 144 of file object_id.hpp.

Member Data Documentation

template<uint8_t SpaceID, uint8_t TypeID>
unsigned_int graphene::db::object_id< SpaceID, TypeID >::instance

Definition at line 148 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
constexpr uint8_t graphene::db::object_id< SpaceID, TypeID >::space_id = SpaceID
static

Definition at line 110 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
constexpr uint8_t graphene::db::object_id< SpaceID, TypeID >::type_id = TypeID
static

Definition at line 111 of file object_id.hpp.


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