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<
65 using type = decltype(check<T>(
nullptr));
66 static constexpr
bool value = type::value;
69 #endif // !defined(MSGPACK_USE_CPP03) 80 #if defined(MSGPACK_USE_LEGACY_NAME_AS_FLOAT) 82 #endif // MSGPACK_USE_LEGACY_NAME_AS_FLOAT 100 #if defined(MSGPACK_USE_CPP03) 108 template <
typename T>
111 #else // defined(MSGPACK_USE_CPP03) 119 template <
typename T>
120 typename std::enable_if<msgpack::has_as<T>::value, T>::type as()
const;
128 template <
typename T>
129 typename std::enable_if<!msgpack::has_as<T>::value, T>::type as()
const;
131 #endif // defined(MSGPACK_USE_CPP03) 140 template <
typename T>
144 #if !defined(MSGPACK_DISABLE_LEGACY_CONVERT) 152 template <
typename T>
154 #endif // !defined(MSGPACK_DISABLE_LEGACY_CONVERT) 163 template <
typename T>
164 bool convert_if_not_nil(T& v)
const;
170 object(
const msgpack_object& o);
180 template <
typename T>
181 explicit object(
const T& v);
192 template <
typename T>
205 template <
typename T>
208 template <
typename T>
209 object& operator=(
const T& v);
211 operator msgpack_object()
const;
228 template <
typename T>
241 #endif // MSGPACK_V1_OBJECT_FWD_HPP bool is_nil() const
Cheking nil.
Definition: object_fwd.hpp:98
Definition: object_fwd.hpp:42
msgpack::object_kv * ptr
Definition: object_fwd.hpp:29
uint32_t size
Definition: object_fwd.hpp:23
const char * ptr
Definition: object_fwd.hpp:39
decltype(check< T >(nullptr)) type
Definition: object_fwd.hpp:65
Definition: object_fwd_decl.hpp:60
union_type via
Definition: object_fwd.hpp:92
~implicit_type()
Definition: object_fwd.hpp:226
Definition: object_fwd.hpp:76
const char * ptr
Definition: object_fwd.hpp:46
msgpack::object * ptr
Definition: object_fwd.hpp:24
uint32_t size
Definition: object_fwd.hpp:38
Definition: adaptor_base.hpp:15
Definition: object_fwd.hpp:224
const char * data() const
Definition: object_fwd.hpp:44
const char * ptr
Definition: object_fwd.hpp:34
implicit_type(object const &o)
Definition: object_fwd.hpp:225
Definition: cpp03_zone.hpp:22
object_type
Definition: object_fwd_decl.hpp:28
bool boolean
Definition: object_fwd.hpp:77
void convert(T &v, msgpack::object const &o)
Definition: object.hpp:640
Definition: object.hpp:34
Definition: object.hpp:29
Definition: object_fwd_decl.hpp:29
int64_t i64
Definition: object_fwd.hpp:79
uint32_t size
Definition: object_fwd.hpp:45
Definition: object_fwd.hpp:22
Definition: object_fwd.hpp:222
int8_t type() const
Definition: object_fwd.hpp:43
double f64
Definition: object_fwd.hpp:83
msgpack::object_array array
Definition: object_fwd.hpp:84
msgpack::object_map map
Definition: object_fwd.hpp:85
msgpack::object_str str
Definition: object_fwd.hpp:86
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
msgpack::type::object_type type
Definition: object_fwd.hpp:91
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
uint32_t size
Definition: object_fwd.hpp:28
integral_constant< bool, false > false_type
Definition: cpp_config_decl.hpp:58
uint32_t size
Definition: object_fwd.hpp:33
Definition: object_fwd.hpp:53
Definition: object_fwd.hpp:27
msgpack::object_ext ext
Definition: object_fwd.hpp:88
Definition: object_fwd.hpp:37
Definition: object_fwd.hpp:32
uint64_t u64
Definition: object_fwd.hpp:78
msgpack::object_bin bin
Definition: object_fwd.hpp:87