object_decl.hpp
Go to the documentation of this file.
//
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2008-2014 FURUHASHI Sadayuki and KONDO Takatoshi
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MSGPACK_V1_OBJECT_DECL_HPP
#define MSGPACK_V1_OBJECT_DECL_HPP
#include "msgpack/versioning.hpp"
#include "msgpack/pack.hpp"
#include "msgpack/zone.hpp"
#include "msgpack/adaptor/adaptor_base.hpp"
#include <cstring>
#include <stdexcept>
#include <typeinfo>
#include <limits>
#include <ostream>
#include <typeinfo>
#include <iomanip>
namespace msgpack {
MSGPACK_API_VERSION_NAMESPACE(v1) {
class object_handle;
namespace detail {
template <std::size_t N>
std::size_t add_ext_type_size(std::size_t size);
template <>
std::size_t add_ext_type_size<4>(std::size_t size);
} // namespace detail
std::size_t aligned_zone_size(msgpack::object const& obj);
object_handle clone(msgpack::object const& obj);
namespace detail {
template <typename Stream, typename T>
struct packer_serializer;
} // namespace detail
// obsolete
template <typename Type>
class define;
bool operator==(const msgpack::object& x, const msgpack::object& y);
template <typename T>
bool operator==(const msgpack::object& x, const T& y);
bool operator!=(const msgpack::object& x, const msgpack::object& y);
template <typename T>
bool operator==(const T& y, const msgpack::object& x);
template <typename T>
bool operator!=(const msgpack::object& x, const T& y);
template <typename T>
bool operator!=(const T& y, const msgpack::object& x);
void operator<< (msgpack::object& o, const msgpack_object& v);
class object_parser;
template <typename Stream>
struct object_pack_visitor;
struct object_stringize_visitor;
// obsolete
template <typename T>
MSGPACK_DEPRECATED("please use member function version of object::convert(T&)")
void convert(T& v, msgpack::object const& o);
// obsolete
template <typename Stream, typename T>
MSGPACK_DEPRECATED("please use member function version of packer::pack(const T&)")
void pack(msgpack::packer<Stream>& o, const T& v);
// obsolete
template <typename Stream, typename T>
MSGPACK_DEPRECATED("please use member function version of packer::pack(const T&)")
void pack_copy(msgpack::packer<Stream>& o, T v);
template <typename Stream>
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const msgpack::object& v);
template <typename Stream>
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const msgpack::object::with_zone& v);
std::ostream& operator<< (std::ostream& s, const msgpack::object& v);
} // MSGPACK_API_VERSION_NAMESPACE(v1)
} // namespace msgpack
#endif // MSGPACK_V1_OBJECT_DECL_HPP
msgpack::operator==
bool operator==(const msgpack::object &x, const msgpack::object &y)
Definition: object.hpp:1027
pack.hpp
adaptor_base.hpp
msgpack
Definition: adaptor_base.hpp:15
versioning.hpp
msgpack::convert
void convert(T &v, msgpack::object const &o)
Definition: object.hpp:1194
zone.hpp
msgpack::pack_copy
void pack_copy(msgpack::packer< Stream > &o, T v)
Definition: object.hpp:1208
msgpack::type::size
std::size_t size(T const &t)
Definition: size_equal_only.hpp:24
msgpack::detail::add_ext_type_size< 4 >
std::size_t add_ext_type_size< 4 >(std::size_t size)
Definition: object.hpp:146
msgpack::operator<<
msgpack::enable_if< !is_array< T >::value, msgpack::packer< Stream > & >::type operator<<(msgpack::packer< Stream > &o, T const &v)
Definition: adaptor_base.hpp:72
msgpack::pack
void pack(msgpack::packer< Stream > &o, const T &v)
Definition: object.hpp:1201
msgpack::object
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
MSGPACK_API_VERSION_NAMESPACE
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
msgpack::detail::add_ext_type_size
std::size_t add_ext_type_size(std::size_t size)
Definition: object.hpp:141
msgpack::clone
object_handle clone(msgpack::object const &obj)
clone object
Definition: object.hpp:617
MSGPACK_DEPRECATED
#define MSGPACK_DEPRECATED(msg)
Definition: cpp_config.hpp:132
msgpack::aligned_zone_size
std::size_t aligned_zone_size(msgpack::object const &obj)
Definition: object.hpp:602
msgpack::operator!=
bool operator!=(const msgpack::object &x, const msgpack::object &y)
Definition: object.hpp:1044