#include <msgpack11.hpp>
|
typedef std::vector< MsgPack > | array |
|
typedef std::vector< uint8_t > | binary |
|
typedef std::tuple< int8_t, binary > | extension |
|
typedef std::map< MsgPack, MsgPack > | object |
|
typedef std::initializer_list< std::pair< std::string, Type > > | shape |
|
enum | Type {
NUMBER = 1,
INT = 2 | NUMBER,
NUL = 1 << 2,
FLOAT32 = 2 << 2 | NUMBER,
FLOAT64 = 3 << 2 | NUMBER,
INT8 = 4 << 2 | INT,
INT16 = 5 << 2 | INT,
INT32 = 6 << 2 | INT,
INT64 = 7 << 2 | INT,
UINT8 = 8 << 2 | INT,
UINT16 = 9 << 2 | INT,
UINT32 = 10 << 2 | INT,
UINT64 = 11 << 2 | INT,
BOOL = 12 << 2,
STRING = 13 << 2,
BINARY = 14 << 2,
ARRAY = 15 << 2,
OBJECT = 16 << 2,
EXTENSION = 17 << 2
} |
|
|
const array & | array_items () const |
|
const binary & | binary_items () const |
|
bool | bool_value () const |
|
std::string | dump () const |
|
void | dump (std::string &out) const |
|
const extension & | extension_items () const |
|
float | float32_value () const |
|
double | float64_value () const |
|
bool | has_shape (const shape &types, std::string &err) const |
|
int16_t | int16_value () const |
|
int32_t | int32_value () const |
|
int64_t | int64_value () const |
|
int8_t | int8_value () const |
|
int32_t | int_value () const |
|
bool | is_array () const |
|
bool | is_binary () const |
|
bool | is_bool () const |
|
bool | is_extension () const |
|
bool | is_float32 () const |
|
bool | is_float64 () const |
|
bool | is_int () const |
|
bool | is_int16 () const |
|
bool | is_int32 () const |
|
bool | is_int64 () const |
|
bool | is_int8 () const |
|
bool | is_null () const |
|
bool | is_number () const |
|
bool | is_object () const |
|
bool | is_string () const |
|
bool | is_uint16 () const |
|
bool | is_uint32 () const |
|
bool | is_uint64 () const |
|
bool | is_uint8 () const |
|
| MsgPack () noexcept |
|
| MsgPack (array &&values) |
|
| MsgPack (binary &&values) |
|
| MsgPack (bool value) |
|
| MsgPack (const array &values) |
|
| MsgPack (const binary &values) |
|
| MsgPack (const char *value) |
|
| MsgPack (const extension &values) |
|
template<class M , typename std::enable_if< std::is_constructible< MsgPack, typename M::key_type >::value &&std::is_constructible< MsgPack, typename M::mapped_type >::value, int >::type = 0> |
| MsgPack (const M &m) |
|
| MsgPack (const object &values) |
|
| MsgPack (const std::string &value) |
|
template<class T , class = decltype(&T::to_msgpack)> |
| MsgPack (const T &t) |
|
template<class V , typename std::enable_if< std::is_constructible< MsgPack, typename V::value_type >::value &&!std::is_same< typename binary::value_type, typename V::value_type >::value, int >::type = 0> |
| MsgPack (const V &v) |
|
template<class V , typename std::enable_if< std::is_constructible< MsgPack, typename V::value_type >::value &&std::is_same< typename binary::value_type, typename V::value_type >::value, int >::type = 0> |
| MsgPack (const V &v) |
|
| MsgPack (double value) |
|
| MsgPack (extension &&values) |
|
| MsgPack (float value) |
|
| MsgPack (int16_t value) |
|
| MsgPack (int32_t value) |
|
| MsgPack (int64_t value) |
|
| MsgPack (int8_t value) |
|
| MsgPack (object &&values) |
|
| MsgPack (std::nullptr_t) noexcept |
|
| MsgPack (std::string &&value) |
|
| MsgPack (uint16_t value) |
|
| MsgPack (uint32_t value) |
|
| MsgPack (uint64_t value) |
|
| MsgPack (uint8_t value) |
|
| MsgPack (void *)=delete |
|
double | number_value () const |
|
const object & | object_items () const |
|
bool | operator!= (const MsgPack &rhs) const |
|
bool | operator< (const MsgPack &rhs) const |
|
bool | operator<= (const MsgPack &rhs) const |
|
bool | operator== (const MsgPack &rhs) const |
|
bool | operator> (const MsgPack &rhs) const |
|
bool | operator>= (const MsgPack &rhs) const |
|
const MsgPack & | operator[] (const std::string &key) const |
|
const MsgPack & | operator[] (size_t i) const |
|
const std::string & | string_value () const |
|
Type | type () const |
|
uint16_t | uint16_value () const |
|
uint32_t | uint32_value () const |
|
uint64_t | uint64_value () const |
|
uint8_t | uint8_value () const |
|
Definition at line 29 of file msgpack11.hpp.
◆ array
◆ binary
◆ extension
◆ object
◆ shape
◆ Type
Enumerator |
---|
NUMBER | |
INT | |
NUL | |
FLOAT32 | |
FLOAT64 | |
INT8 | |
INT16 | |
INT32 | |
INT64 | |
UINT8 | |
UINT16 | |
UINT32 | |
UINT64 | |
BOOL | |
STRING | |
BINARY | |
ARRAY | |
OBJECT | |
EXTENSION | |
Definition at line 33 of file msgpack11.hpp.
◆ MsgPack() [1/29]
msgpack11::MsgPack::MsgPack |
( |
| ) |
|
|
noexcept |
◆ MsgPack() [2/29]
msgpack11::MsgPack::MsgPack |
( |
std::nullptr_t |
| ) |
|
|
noexcept |
◆ MsgPack() [3/29]
msgpack11::MsgPack::MsgPack |
( |
float |
value | ) |
|
◆ MsgPack() [4/29]
msgpack11::MsgPack::MsgPack |
( |
double |
value | ) |
|
◆ MsgPack() [5/29]
msgpack11::MsgPack::MsgPack |
( |
int8_t |
value | ) |
|
◆ MsgPack() [6/29]
msgpack11::MsgPack::MsgPack |
( |
int16_t |
value | ) |
|
◆ MsgPack() [7/29]
msgpack11::MsgPack::MsgPack |
( |
int32_t |
value | ) |
|
◆ MsgPack() [8/29]
msgpack11::MsgPack::MsgPack |
( |
int64_t |
value | ) |
|
◆ MsgPack() [9/29]
msgpack11::MsgPack::MsgPack |
( |
uint8_t |
value | ) |
|
◆ MsgPack() [10/29]
msgpack11::MsgPack::MsgPack |
( |
uint16_t |
value | ) |
|
◆ MsgPack() [11/29]
msgpack11::MsgPack::MsgPack |
( |
uint32_t |
value | ) |
|
◆ MsgPack() [12/29]
msgpack11::MsgPack::MsgPack |
( |
uint64_t |
value | ) |
|
◆ MsgPack() [13/29]
msgpack11::MsgPack::MsgPack |
( |
bool |
value | ) |
|
◆ MsgPack() [14/29]
msgpack11::MsgPack::MsgPack |
( |
const std::string & |
value | ) |
|
◆ MsgPack() [15/29]
msgpack11::MsgPack::MsgPack |
( |
std::string && |
value | ) |
|
◆ MsgPack() [16/29]
msgpack11::MsgPack::MsgPack |
( |
const char * |
value | ) |
|
◆ MsgPack() [17/29]
msgpack11::MsgPack::MsgPack |
( |
const array & |
values | ) |
|
◆ MsgPack() [18/29]
◆ MsgPack() [19/29]
◆ MsgPack() [20/29]
◆ MsgPack() [21/29]
◆ MsgPack() [22/29]
◆ MsgPack() [23/29]
◆ MsgPack() [24/29]
◆ MsgPack() [25/29]
template<class T , class = decltype(&T::to_msgpack)>
msgpack11::MsgPack::MsgPack |
( |
const T & |
t | ) |
|
|
inline |
◆ MsgPack() [26/29]
template<class M , typename std::enable_if< std::is_constructible< MsgPack, typename M::key_type >::value &&std::is_constructible< MsgPack, typename M::mapped_type >::value, int >::type = 0>
msgpack11::MsgPack::MsgPack |
( |
const M & |
m | ) |
|
|
inline |
◆ MsgPack() [27/29]
template<class V , typename std::enable_if< std::is_constructible< MsgPack, typename V::value_type >::value &&!std::is_same< typename binary::value_type, typename V::value_type >::value, int >::type = 0>
msgpack11::MsgPack::MsgPack |
( |
const V & |
v | ) |
|
|
inline |
◆ MsgPack() [28/29]
template<class V , typename std::enable_if< std::is_constructible< MsgPack, typename V::value_type >::value &&std::is_same< typename binary::value_type, typename V::value_type >::value, int >::type = 0>
msgpack11::MsgPack::MsgPack |
( |
const V & |
v | ) |
|
|
inline |
◆ MsgPack() [29/29]
msgpack11::MsgPack::MsgPack |
( |
void * |
| ) |
|
|
delete |
◆ array_items()
const vector< MsgPack > & msgpack11::MsgPack::array_items |
( |
| ) |
const |
◆ binary_items()
◆ bool_value()
bool msgpack11::MsgPack::bool_value |
( |
| ) |
const |
◆ dump() [1/2]
std::string msgpack11::MsgPack::dump |
( |
| ) |
const |
|
inline |
◆ dump() [2/2]
void msgpack11::MsgPack::dump |
( |
std::string & |
out | ) |
const |
|
inline |
◆ extension_items()
◆ float32_value()
float msgpack11::MsgPack::float32_value |
( |
| ) |
const |
◆ float64_value()
double msgpack11::MsgPack::float64_value |
( |
| ) |
const |
◆ has_shape()
bool msgpack11::MsgPack::has_shape |
( |
const shape & |
types, |
|
|
std::string & |
err |
|
) |
| const |
◆ int16_value()
int16_t msgpack11::MsgPack::int16_value |
( |
| ) |
const |
◆ int32_value()
int32_t msgpack11::MsgPack::int32_value |
( |
| ) |
const |
◆ int64_value()
int64_t msgpack11::MsgPack::int64_value |
( |
| ) |
const |
◆ int8_value()
int8_t msgpack11::MsgPack::int8_value |
( |
| ) |
const |
◆ int_value()
int32_t msgpack11::MsgPack::int_value |
( |
| ) |
const |
◆ is_array()
bool msgpack11::MsgPack::is_array |
( |
| ) |
const |
|
inline |
◆ is_binary()
bool msgpack11::MsgPack::is_binary |
( |
| ) |
const |
|
inline |
◆ is_bool()
bool msgpack11::MsgPack::is_bool |
( |
| ) |
const |
|
inline |
◆ is_extension()
bool msgpack11::MsgPack::is_extension |
( |
| ) |
const |
|
inline |
◆ is_float32()
bool msgpack11::MsgPack::is_float32 |
( |
| ) |
const |
|
inline |
◆ is_float64()
bool msgpack11::MsgPack::is_float64 |
( |
| ) |
const |
|
inline |
◆ is_int()
bool msgpack11::MsgPack::is_int |
( |
| ) |
const |
|
inline |
◆ is_int16()
bool msgpack11::MsgPack::is_int16 |
( |
| ) |
const |
|
inline |
◆ is_int32()
bool msgpack11::MsgPack::is_int32 |
( |
| ) |
const |
|
inline |
◆ is_int64()
bool msgpack11::MsgPack::is_int64 |
( |
| ) |
const |
|
inline |
◆ is_int8()
bool msgpack11::MsgPack::is_int8 |
( |
| ) |
const |
|
inline |
◆ is_null()
bool msgpack11::MsgPack::is_null |
( |
| ) |
const |
|
inline |
◆ is_number()
bool msgpack11::MsgPack::is_number |
( |
| ) |
const |
|
inline |
◆ is_object()
bool msgpack11::MsgPack::is_object |
( |
| ) |
const |
|
inline |
◆ is_string()
bool msgpack11::MsgPack::is_string |
( |
| ) |
const |
|
inline |
◆ is_uint16()
bool msgpack11::MsgPack::is_uint16 |
( |
| ) |
const |
|
inline |
◆ is_uint32()
bool msgpack11::MsgPack::is_uint32 |
( |
| ) |
const |
|
inline |
◆ is_uint64()
bool msgpack11::MsgPack::is_uint64 |
( |
| ) |
const |
|
inline |
◆ is_uint8()
bool msgpack11::MsgPack::is_uint8 |
( |
| ) |
const |
|
inline |
◆ number_value()
double msgpack11::MsgPack::number_value |
( |
| ) |
const |
◆ object_items()
◆ operator!=()
bool msgpack11::MsgPack::operator!= |
( |
const MsgPack & |
rhs | ) |
const |
|
inline |
◆ operator<()
bool msgpack11::MsgPack::operator< |
( |
const MsgPack & |
rhs | ) |
const |
◆ operator<=()
bool msgpack11::MsgPack::operator<= |
( |
const MsgPack & |
rhs | ) |
const |
|
inline |
◆ operator==()
bool msgpack11::MsgPack::operator== |
( |
const MsgPack & |
rhs | ) |
const |
◆ operator>()
bool msgpack11::MsgPack::operator> |
( |
const MsgPack & |
rhs | ) |
const |
|
inline |
◆ operator>=()
bool msgpack11::MsgPack::operator>= |
( |
const MsgPack & |
rhs | ) |
const |
|
inline |
◆ operator[]() [1/2]
◆ operator[]() [2/2]
const MsgPack & msgpack11::MsgPack::operator[] |
( |
size_t |
i | ) |
const |
◆ parse() [1/4]
static MsgPack msgpack11::MsgPack::parse |
( |
const char * |
in, |
|
|
size_t |
len, |
|
|
std::string & |
err |
|
) |
| |
|
inlinestatic |
◆ parse() [2/4]
static MsgPack msgpack11::MsgPack::parse |
( |
const std::string & |
in, |
|
|
std::string & |
err |
|
) |
| |
|
static |
◆ parse() [3/4]
MsgPack msgpack11::MsgPack::parse |
( |
std::istream & |
is | ) |
|
|
static |
◆ parse() [4/4]
MsgPack msgpack11::MsgPack::parse |
( |
std::istream & |
is, |
|
|
std::string & |
err |
|
) |
| |
|
static |
◆ parse_multi() [1/2]
static std::vector<MsgPack> msgpack11::MsgPack::parse_multi |
( |
const std::string & |
in, |
|
|
std::string & |
err |
|
) |
| |
|
inlinestatic |
◆ parse_multi() [2/2]
static std::vector<MsgPack> msgpack11::MsgPack::parse_multi |
( |
const std::string & |
in, |
|
|
std::string::size_type & |
parser_stop_pos, |
|
|
std::string & |
err |
|
) |
| |
|
static |
◆ string_value()
const string & msgpack11::MsgPack::string_value |
( |
| ) |
const |
◆ type()
◆ uint16_value()
uint16_t msgpack11::MsgPack::uint16_value |
( |
| ) |
const |
◆ uint32_value()
uint32_t msgpack11::MsgPack::uint32_value |
( |
| ) |
const |
◆ uint64_value()
uint64_t msgpack11::MsgPack::uint64_value |
( |
| ) |
const |
◆ uint8_value()
uint8_t msgpack11::MsgPack::uint8_value |
( |
| ) |
const |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const MsgPack & |
msgpack |
|
) |
| |
|
friend |
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
is, |
|
|
MsgPack & |
msgpack |
|
) |
| |
|
friend |
◆ m_ptr
The documentation for this class was generated from the following files: