BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Classes | Namespaces | Macros | Typedefs | Functions
object_id.hpp File Reference
#include <fc/exception/exception.hpp>
#include <fc/io/varint.hpp>
#include <memory>

Go to the source code of this file.

Classes

struct  graphene::db::object_id_type
 
struct  graphene::db::object_downcast< ObjectID >
 This template is used to downcast a generic object type to a specific xyz_object type. More...
 
struct  graphene::db::object_id< SpaceID, TypeID >
 
struct  fc::get_typename< graphene::db::object_id< SpaceID, TypeID > >
 
struct  fc::reflector< graphene::db::object_id< SpaceID, TypeID > >
 
struct  fc::member_names::member_name< graphene::db::object_id< S, T >, 0 >
 
struct  std::hash< graphene::db::object_id_type >
 

Namespaces

 graphene
 
 graphene::db
 
 fc
 
 fc::member_names
 
 std
 

Macros

#define GRAPHENE_DB_MAX_INSTANCE_ID   (uint64_t(-1)>>16)
 
#define MAP_OBJECT_ID_TO_TYPE(OBJECT)
 

Typedefs

template<typename ObjectID >
using graphene::db::object_downcast_t = typename object_downcast< ObjectID >::type
 

Functions

void fc::to_variant (const graphene::db::object_id_type &var, fc::variant &vo, uint32_t max_depth=1)
 
void fc::from_variant (const fc::variant &var, graphene::db::object_id_type &vo, uint32_t max_depth=1)
 
template<uint8_t SpaceID, uint8_t TypeID>
void fc::to_variant (const graphene::db::object_id< SpaceID, TypeID > &var, fc::variant &vo, uint32_t max_depth=1)
 
template<uint8_t SpaceID, uint8_t TypeID>
void fc::from_variant (const fc::variant &var, graphene::db::object_id< SpaceID, TypeID > &vo, uint32_t max_depth=1)
 

Macro Definition Documentation

#define GRAPHENE_DB_MAX_INSTANCE_ID   (uint64_t(-1)>>16)

Definition at line 28 of file object_id.hpp.

#define MAP_OBJECT_ID_TO_TYPE (   OBJECT)
Value:
namespace graphene { namespace db { \
template<> \
struct object_downcast<graphene::db::object_id<OBJECT::space_id, \
OBJECT::type_id>> { using type = OBJECT; }; \
} }
Definition: api.cpp:56

Definition at line 98 of file object_id.hpp.