MessagePack for C++
Loading...
Searching...
No Matches
object_decl.hpp
Go to the documentation of this file.
1//
2// MessagePack for C++ static resolution routine
3//
4// Copyright (C) 2008-2014 FURUHASHI Sadayuki and KONDO Takatoshi
5//
6// Distributed under the Boost Software License, Version 1.0.
7// (See accompanying file LICENSE_1_0.txt or copy at
8// http://www.boost.org/LICENSE_1_0.txt)
9//
10#ifndef MSGPACK_V1_OBJECT_DECL_HPP
11#define MSGPACK_V1_OBJECT_DECL_HPP
12
14#include "msgpack/pack.hpp"
15#include "msgpack/zone.hpp"
17
18#include <cstring>
19#include <stdexcept>
20#include <typeinfo>
21#include <limits>
22#include <ostream>
23#include <typeinfo>
24#include <iomanip>
25
26namespace msgpack {
27
31
33class object_handle;
34
35namespace detail {
36
37template <std::size_t N>
38std::size_t add_ext_type_size(std::size_t size);
39
40template <>
41std::size_t add_ext_type_size<4>(std::size_t size);
42
43} // namespace detail
44
45std::size_t aligned_zone_size(msgpack::object const& obj);
46
48
55object_handle clone(msgpack::object const& obj);
56
57namespace detail {
58
59template <typename Stream, typename T>
60struct packer_serializer;
61
62} // namespace detail
63
64// obsolete
65template <typename Type>
66class define;
67
68bool operator==(const msgpack::object& x, const msgpack::object& y);
69
70template <typename T>
71bool operator==(const msgpack::object& x, const T& y);
72
73bool operator!=(const msgpack::object& x, const msgpack::object& y);
74
75template <typename T>
76bool operator==(const T& y, const msgpack::object& x);
77
78template <typename T>
79bool operator!=(const msgpack::object& x, const T& y);
80
81template <typename T>
82bool operator!=(const T& y, const msgpack::object& x);
83
84void operator<< (msgpack::object& o, const msgpack_object& v);
85
86class object_parser;
87
88template <typename Stream>
89struct object_pack_visitor;
90
91struct object_stringize_visitor;
92
93// obsolete
94template <typename T>
95MSGPACK_DEPRECATED("please use member function version of object::convert(T&)")
96void convert(T& v, msgpack::object const& o);
97
98// obsolete
99template <typename Stream, typename T>
100MSGPACK_DEPRECATED("please use member function version of packer::pack(const T&)")
101void pack(msgpack::packer<Stream>& o, const T& v);
102
103// obsolete
104template <typename Stream, typename T>
105MSGPACK_DEPRECATED("please use member function version of packer::pack(const T&)")
106void pack_copy(msgpack::packer<Stream>& o, T v);
107
108template <typename Stream>
109msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const msgpack::object& v);
110
111template <typename Stream>
112msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const msgpack::object::with_zone& v);
113
114std::ostream& operator<< (std::ostream& s, const msgpack::object& v);
115
117} // MSGPACK_API_VERSION_NAMESPACE(v1)
119
120} // namespace msgpack
121
122#endif // MSGPACK_V1_OBJECT_DECL_HPP
std::size_t add_ext_type_size< 4 >(std::size_t size)
Definition object.hpp:146
std::size_t add_ext_type_size(std::size_t size)
Definition object.hpp:141
bool operator==(nil_t const &lhs, nil_t const &rhs)
Definition nil.hpp:29
Definition adaptor_base.hpp:15
void pack_copy(msgpack::packer< Stream > &o, T v)
Definition object.hpp:1208
object_handle clone(msgpack::object const &obj)
clone object
Definition object.hpp:617
std::size_t aligned_zone_size(msgpack::object const &obj)
Definition object.hpp:602
void convert(T &v, msgpack::object const &o)
Definition object.hpp:1194
bool operator!=(const msgpack::object &x, const msgpack::object &y)
Definition object.hpp:1044
Object class that corresponding to MessagePack format object.
Definition object_fwd.hpp:75
#define MSGPACK_DEPRECATED(msg)
Definition cpp_config.hpp:136
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition versioning.hpp:58