Go to the documentation of this file.
11 #ifndef MSGPACK_V1_OBJECT_FWD_HPP
12 #define MSGPACK_V1_OBJECT_FWD_HPP
44 const char*
data()
const {
return &
ptr[1]; }
50 #if !defined(MSGPACK_USE_CPP03)
56 static auto check(U*) ->
58 typename std::is_same<
62 template <
typename...>
66 static constexpr
bool value = type::value;
69 #endif // !defined(MSGPACK_USE_CPP03)
80 #if defined(MSGPACK_USE_LEGACY_NAME_AS_FLOAT)
83 #endif // MSGPACK_USE_LEGACY_NAME_AS_FLOAT
101 #if defined(MSGPACK_USE_CPP03)
109 template <
typename T>
112 #else // defined(MSGPACK_USE_CPP03)
120 template <
typename T>
121 typename std::enable_if<msgpack::has_as<T>::value, T>::type as()
const;
129 template <
typename T>
130 typename std::enable_if<!msgpack::has_as<T>::value, T>::type as()
const;
132 #endif // defined(MSGPACK_USE_CPP03)
141 template <
typename T>
148 template <
typename T, std::
size_t N>
149 T (&
convert(T(&v)[N])
const)[N];
152 #if !defined(MSGPACK_DISABLE_LEGACY_CONVERT)
160 template <
typename T>
167 #endif // !defined(MSGPACK_DISABLE_LEGACY_CONVERT)
176 template <
typename T>
177 bool convert_if_not_nil(T& v)
const;
183 object(
const msgpack_object& o);
193 template <
typename T>
194 explicit object(
const T& v);
205 template <
typename T>
218 template <
typename T>
219 MSGPACK_DEPRECATED(
"please use zone reference version instead of the pointer version")
222 template <typename T>
223 object& operator=(const T& v);
225 operator msgpack_object() const;
230 struct implicit_type;
242 template <
typename T>
255 #endif // MSGPACK_V1_OBJECT_FWD_HPP
Definition: object_fwd.hpp:27
Definition: object_fwd.hpp:53
const char * ptr
Definition: object_fwd.hpp:39
const char * data() const
Definition: object_fwd.hpp:44
int64_t i64
Definition: object_fwd.hpp:79
const char * ptr
Definition: object_fwd.hpp:46
Definition: adaptor_base.hpp:15
Definition: cpp_config_decl.hpp:71
const char * ptr
Definition: object_fwd.hpp:34
Definition: object_fwd.hpp:37
Definition: cpp_config_decl.hpp:56
object_type
Definition: object_fwd_decl.hpp:28
static constexpr bool value
Definition: object_fwd.hpp:66
Definition: object_fwd.hpp:32
uint32_t size
Definition: object_fwd.hpp:38
Definition: object_fwd.hpp:76
implicit_type(object const &o)
Definition: object_fwd.hpp:239
Definition: object_fwd.hpp:42
uint32_t size
Definition: object_fwd.hpp:45
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
union_type via
Definition: object_fwd.hpp:93
Definition: object_fwd.hpp:22
Definition: cpp03_zone.hpp:22
msgpack::object * ptr
Definition: object_fwd.hpp:24
void convert(T &v, msgpack::object const &o)
Definition: object.hpp:1194
msgpack::object_map map
Definition: object_fwd.hpp:86
Definition: object_fwd_decl.hpp:62
#define MSGPACK_NULLPTR
Definition: cpp_config_decl.hpp:35
uint32_t size
Definition: object_fwd.hpp:23
msgpack::object_array array
Definition: object_fwd.hpp:85
Definition: object.hpp:30
msgpack::object_ext ext
Definition: object_fwd.hpp:89
uint32_t size
Definition: object_fwd.hpp:33
@ NIL
Definition: object_fwd_decl.hpp:29
uint64_t u64
Definition: object_fwd.hpp:78
msgpack::object_bin bin
Definition: object_fwd.hpp:88
Definition: object_fwd.hpp:238
Definition: object_fwd.hpp:236
uint32_t size
Definition: object_fwd.hpp:28
~implicit_type()
Definition: object_fwd.hpp:240
integral_constant< bool, false > false_type
Definition: cpp_config_decl.hpp:62
bool boolean
Definition: object_fwd.hpp:77
double f64
Definition: object_fwd.hpp:84
Definition: cpp_config_decl.hpp:81
#define MSGPACK_DEPRECATED(msg)
Definition: cpp_config.hpp:132
bool is_nil() const
Cheking nil.
Definition: object_fwd.hpp:99
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
msgpack::object_kv * ptr
Definition: object_fwd.hpp:29
int8_t type() const
Definition: object_fwd.hpp:43
msgpack::type::object_type type
Definition: object_fwd.hpp:92
msgpack::object_str str
Definition: object_fwd.hpp:87
decltype(check< T >(MSGPACK_NULLPTR)) type
Definition: object_fwd.hpp:65