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

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 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

◆ MAP_OBJECT_ID_TO_TYPE

#define MAP_OBJECT_ID_TO_TYPE (   OBJECT)
Value:
namespace graphene { namespace db { \
template<> \
struct object_downcast<const graphene::db::object_id<OBJECT::space_id, \
OBJECT::type_id>&> { using type = OBJECT; }; \
} }

Definition at line 93 of file object_id.hpp.

graphene::db::object_id
Definition: object_id.hpp:103
graphene
Definition: api.cpp:48