MessagePack for C++
Macros
define_decl.hpp File Reference
#include <msgpack/preprocessor.hpp>
#include "msgpack/versioning.hpp"
#include "msgpack/adaptor/int.hpp"
#include "msgpack/v1/adaptor/define_decl.hpp"
#include "msgpack/v2/adaptor/define_decl.hpp"

Go to the source code of this file.

Macros

#define MSGPACK_PP_VARIADICS
 
#define MSGPACK_DEFINE_ARRAY(...)
 
#define MSGPACK_BASE_ARRAY(base)   (*const_cast<base *>(static_cast<base const*>(this)))
 
#define MSGPACK_DEFINE_MAP_EACH_PROC(r, data, elem)
 
#define MSGPACK_DEFINE_MAP_IMPL(...)
 
#define MSGPACK_DEFINE_MAP(...)
 
#define MSGPACK_BASE_MAP(base)   (MSGPACK_PP_STRINGIZE(base))(*const_cast<base *>(static_cast<base const*>(this)))
 
#define MSGPACK_ADD_ENUM(enum_name)
 
#define MSGPACK_DEFINE   MSGPACK_DEFINE_ARRAY
 
#define MSGPACK_BASE   MSGPACK_BASE_ARRAY
 

Macro Definition Documentation

#define MSGPACK_ADD_ENUM (   enum_name)
#define MSGPACK_BASE   MSGPACK_BASE_ARRAY
#define MSGPACK_BASE_ARRAY (   base)    (*const_cast<base *>(static_cast<base const*>(this)))
#define MSGPACK_BASE_MAP (   base)    (MSGPACK_PP_STRINGIZE(base))(*const_cast<base *>(static_cast<base const*>(this)))
#define MSGPACK_DEFINE   MSGPACK_DEFINE_ARRAY
#define MSGPACK_DEFINE_ARRAY (   ...)
Value:
template <typename Packer> \
void msgpack_pack(Packer& pk) const \
{ \
} \
void msgpack_unpack(msgpack::object const& o) \
{ \
}\
template <typename MSGPACK_OBJECT> \
void msgpack_object(MSGPACK_OBJECT* o, msgpack::zone& z) const \
{ \
}
void msgpack_pack(Packer &pk) const
Definition: cpp11_define_array.hpp:65
define_array make_define_array()
Definition: cpp03_define_array.hpp:3218
Definition: cpp03_zone.hpp:22
void msgpack_object(msgpack::object *o, msgpack::zone &z) const
Definition: cpp11_define_array.hpp:77
void msgpack_unpack(msgpack::object const &o)
Definition: cpp11_define_array.hpp:71
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
#define MSGPACK_DEFINE_MAP (   ...)
Value:
template <typename Packer> \
void msgpack_pack(Packer& pk) const \
{ \
.msgpack_pack(pk); \
} \
void msgpack_unpack(msgpack::object const& o) \
{ \
.msgpack_unpack(o); \
}\
template <typename MSGPACK_OBJECT> \
void msgpack_object(MSGPACK_OBJECT* o, msgpack::zone& z) const \
{ \
.msgpack_object(o, z); \
}
Definition: cpp03_zone.hpp:22
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
#define MSGPACK_DEFINE_MAP_IMPL(...)
Definition: define_decl.hpp:53
#define MSGPACK_DEFINE_MAP_EACH_PROC (   r,
  data,
  elem 
)
Value:
MSGPACK_PP_IS_BEGIN_PARENS(elem), \
elem, \
(MSGPACK_PP_STRINGIZE(elem))(elem) \
)
#define MSGPACK_PP_STRINGIZE(text)
Definition: stringize.hpp:28
#define MSGPACK_PP_IF(cond, t, f)
Definition: if.hpp:26
#define MSGPACK_DEFINE_MAP_IMPL (   ...)
Value:
0, \
MSGPACK_PP_VARIADIC_TO_SEQ(__VA_ARGS__) \
) \
)
#define MSGPACK_PP_SEQ_TO_TUPLE(seq)
Definition: to_tuple.hpp:23
#define MSGPACK_PP_SEQ_FOR_EACH(macro, data, seq)
Definition: for_each.hpp:28
#define MSGPACK_DEFINE_MAP_EACH_PROC(r, data, elem)
Definition: define_decl.hpp:46
#define MSGPACK_PP_VARIADICS