MessagePack for C++
Namespaces | Classes | Typedefs | Enumerations | Functions
msgpack::type Namespace Reference

Namespaces

 detail
 

Classes

struct  array_ref
 
struct  array_ref< T[N]>
 
struct  basic_variant
 
struct  define_array<>
 
struct  define_map<>
 
struct  tuple_type
 
struct  tuple_type< T & >
 
struct  tuple_type< const T & >
 
struct  tuple<>
 
struct  tuple_element
 
struct  const_tuple_element
 
struct  define_array_imp
 
struct  define_array_imp< Tuple, 1 >
 
struct  define_array
 
struct  define_map_imp
 
struct  define_map_imp< Tuple, 0 >
 
struct  define_map
 
class  tuple
 
class  ext
 
class  ext_ref
 
struct  fix_int
 
class  assoc_vector
 
struct  nil_t
 
struct  raw_ref
 
struct  size_equal_only
 
struct  v4raw_ref
 

Typedefs

typedef basic_variant< std::string, std::vector< char >, extvariant
 
typedef basic_variant< std::string, raw_ref, ext_refvariant_ref
 
typedef fix_int< uint8_t > fix_uint8
 
typedef fix_int< uint16_t > fix_uint16
 
typedef fix_int< uint32_t > fix_uint32
 
typedef fix_int< uint64_t > fix_uint64
 
typedef fix_int< int8_t > fix_int8
 
typedef fix_int< int16_t > fix_int16
 
typedef fix_int< int32_t > fix_int32
 
typedef fix_int< int64_t > fix_int64
 
typedef nil_t nil
 

Enumerations

enum  object_type {
  NIL = 0x00 , BOOLEAN = 0x01 , POSITIVE_INTEGER = 0x02 , NEGATIVE_INTEGER = 0x03 ,
  FLOAT32 = 0x0a , FLOAT64 = 0x04 , FLOAT = 0x04 , STR = 0x05 ,
  BIN = 0x06 , ARRAY = 0x07 , MAP = 0x08 , EXT = 0x09
}
 

Functions

template<typename T >
msgpack::enable_if< !msgpack::is_array< T const >::value, array_ref< T const >>::type make_array_ref (const T &t)
 
template<typename T >
msgpack::enable_if< !msgpack::is_array< T >::value, array_ref< T >>::type make_array_ref (T &t)
 
template<typename T , std::size_t N>
array_ref< const T[N]> make_array_ref (const T(&t)[N])
 
template<typename T , std::size_t N>
array_ref< T[N]> make_array_ref (T(&t)[N])
 
template<typename STR , typename BIN , typename EXT >
bool operator< (basic_variant< STR, BIN, EXT > const &lhs, basic_variant< STR, BIN, EXT > const &rhs)
 
template<typename STR , typename BIN , typename EXT >
bool operator== (basic_variant< STR, BIN, EXT > const &lhs, basic_variant< STR, BIN, EXT > const &rhs)
 
template<typename STR , typename BIN , typename EXT >
bool operator!= (basic_variant< STR, BIN, EXT > const &lhs, basic_variant< STR, BIN, EXT > const &rhs)
 
define_array make_define_array ()
 
define_map make_define_map ()
 
tuple make_tuple ()
 
template<typename T >
std::enable_if< has_as< T >::value >::type convert_helper (msgpack::object const &o, T &t)
 
template<typename T >
std::enable_if< !has_as< T >::value >::type convert_helper (msgpack::object const &o, T &t)
 
template<typename... Args>
define_array< Args... > make_define_array (Args &... args)
 
template<typename... Args>
define_map< Args... > make_define_map (Args &... args)
 
template<class... Args>
tuple< Args... > make_tuple (Args &&... args)
 
template<class... Args>
tuple< Args &&... > forward_as_tuple (Args &&... args) noexcept
 
template<class... Tuples>
auto tuple_cat (Tuples &&... args) -> decltype(std::tuple_cat(std::forward< typename std::remove_reference< Tuples >::type::base >(args)...))
 
template<class... Args>
tuple< Args &... > tie (Args &... args)
 
bool operator< (nil_t const &lhs, nil_t const &rhs)
 
bool operator== (nil_t const &lhs, nil_t const &rhs)
 
template<typename T >
std::size_t size (T const &t)
 
template<typename T , std::size_t N>
std::size_t size (const T(&)[N])
 
template<typename... T>
std::size_t size (std::tuple< T... > const &)
 
template<typename T >
size_equal_only< T > make_size_equal_only (T &t)
 
template<typename T >
bool operator< (size_equal_only< T > const &lhs, size_equal_only< T > const &rhs)
 
template<typename T >
bool operator== (size_equal_only< T > const &lhs, size_equal_only< T > const &rhs)
 

Typedef Documentation

◆ fix_int16

◆ fix_int32

◆ fix_int64

◆ fix_int8

◆ fix_uint16

◆ fix_uint32

◆ fix_uint64

◆ fix_uint8

◆ nil

◆ variant

typedef basic_variant< std::string, std::vector< char >, msgpack::type::ext > msgpack::type::variant

◆ variant_ref

Enumeration Type Documentation

◆ object_type

Enumerator
NIL 
BOOLEAN 
POSITIVE_INTEGER 
NEGATIVE_INTEGER 
FLOAT32 
FLOAT64 
FLOAT 
STR 
BIN 
ARRAY 
MAP 
EXT 

Function Documentation

◆ convert_helper() [1/2]

template<typename T >
std::enable_if< has_as<T>::value>::type msgpack::type::convert_helper ( msgpack::object const &  o,
T &  t 
)
inline

◆ convert_helper() [2/2]

template<typename T >
std::enable_if< !has_as<T>::value>::type msgpack::type::convert_helper ( msgpack::object const &  o,
T &  t 
)
inline

◆ forward_as_tuple()

template<class... Args>
tuple< Args &&... > msgpack::type::forward_as_tuple ( Args &&...  args)
inlinenoexcept

◆ make_array_ref() [1/4]

template<typename T >
msgpack::enable_if< !msgpack::is_array<T const>::value, array_ref<T const>>::type msgpack::type::make_array_ref ( const T &  t)
inline

◆ make_array_ref() [2/4]

template<typename T , std::size_t N>
array_ref< const T[N]> msgpack::type::make_array_ref ( const T(&)  t[N])
inline

◆ make_array_ref() [3/4]

template<typename T >
msgpack::enable_if< !msgpack::is_array<T>::value, array_ref<T>>::type msgpack::type::make_array_ref ( T &  t)
inline

◆ make_array_ref() [4/4]

template<typename T , std::size_t N>
array_ref< T[N]> msgpack::type::make_array_ref ( T(&)  t[N])
inline

◆ make_define_array() [1/2]

define_array msgpack::type::make_define_array ( )
inline

◆ make_define_array() [2/2]

template<typename... Args>
define_array< Args... > msgpack::type::make_define_array ( Args &...  args)
inline

◆ make_define_map() [1/2]

define_map msgpack::type::make_define_map ( )
inline

◆ make_define_map() [2/2]

template<typename... Args>
define_map< Args... > msgpack::type::make_define_map ( Args &...  args)
inline

◆ make_size_equal_only()

template<typename T >
size_equal_only< T > msgpack::type::make_size_equal_only ( T &  t)
inline

◆ make_tuple() [1/2]

tuple msgpack::type::make_tuple ( )
inline

◆ make_tuple() [2/2]

template<class... Args>
tuple< Args... > msgpack::type::make_tuple ( Args &&...  args)
inline

◆ operator!=()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::operator!= ( basic_variant< STR, BIN, EXT > const &  lhs,
basic_variant< STR, BIN, EXT > const &  rhs 
)

◆ operator<() [1/3]

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::operator< ( basic_variant< STR, BIN, EXT > const &  lhs,
basic_variant< STR, BIN, EXT > const &  rhs 
)
inline

◆ operator<() [2/3]

bool msgpack::type::operator< ( nil_t const &  lhs,
nil_t const &  rhs 
)
inline

◆ operator<() [3/3]

template<typename T >
bool msgpack::type::operator< ( size_equal_only< T > const &  lhs,
size_equal_only< T > const &  rhs 
)
inline

◆ operator==() [1/3]

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::operator== ( basic_variant< STR, BIN, EXT > const &  lhs,
basic_variant< STR, BIN, EXT > const &  rhs 
)
inline

◆ operator==() [2/3]

bool msgpack::type::operator== ( nil_t const &  lhs,
nil_t const &  rhs 
)
inline

◆ operator==() [3/3]

template<typename T >
bool msgpack::type::operator== ( size_equal_only< T > const &  lhs,
size_equal_only< T > const &  rhs 
)
inline

◆ size() [1/3]

template<typename T , std::size_t N>
std::size_t msgpack::type::size ( const   T(&)[N])
inline

◆ size() [2/3]

template<typename... T>
std::size_t msgpack::type::size ( std::tuple< T... > const &  )
inline

◆ size() [3/3]

template<typename T >
std::size_t msgpack::type::size ( T const &  t)
inline

Referenced by msgpack::detail::add_ext_type_size(), msgpack::detail::add_ext_type_size< 4 >(), msgpack::aligned_size(), msgpack::zone::allocate_align(), msgpack::zone::allocate_no_align(), msgpack::unpacker::buffer_consumed(), msgpack::detail::check_container_size(), msgpack::detail::check_container_size_for_ext(), msgpack::detail::check_container_size_for_ext< 4 >(), msgpack::detail::context< VisitorHolder >::check_ext_size(), msgpack::checked_get_container_size(), msgpack::clone(), msgpack::zone::operator new(), msgpack::adaptor::object< const char * >::operator()(), msgpack::adaptor::object< char[N]>::operator()(), msgpack::adaptor::object< const char[N]>::operator()(), msgpack::adaptor::object< msgpack::type::ext_ref >::operator()(), msgpack::adaptor::object< std::array< char, N > >::operator()(), msgpack::adaptor::object< std::array< unsigned char, N > >::operator()(), msgpack::adaptor::object< std::string >::operator()(), msgpack::adaptor::object< std::vector< char, Alloc > >::operator()(), msgpack::adaptor::object< std::vector< unsigned char, Alloc > >::operator()(), msgpack::adaptor::convert< T, typename msgpack::enable_if< detail::is_seq_no_pair_no_tuple< T >::value >::type >::operator()(), msgpack::adaptor::convert< type::size_equal_only< T > >::operator()(), msgpack::adaptor::object_with_zone< const char * >::operator()(), msgpack::adaptor::object_with_zone< char[N]>::operator()(), msgpack::adaptor::object_with_zone< const char[N]>::operator()(), msgpack::adaptor::object_with_zone< msgpack::type::array_ref< T > >::operator()(), msgpack::adaptor::object_with_zone< msgpack::type::array_ref< T[N]> >::operator()(), msgpack::adaptor::object_with_zone< msgpack::type::ext >::operator()(), msgpack::adaptor::object_with_zone< std::array< char, N > >::operator()(), msgpack::adaptor::object_with_zone< std::array< T, N > >::operator()(), msgpack::adaptor::object_with_zone< std::array< unsigned char, N > >::operator()(), msgpack::adaptor::object_with_zone< std::deque< T, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::forward_list< T, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::list< T, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::map< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::multimap< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::multiset< T, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::set< T, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::string >::operator()(), msgpack::adaptor::object_with_zone< std::unordered_map< K, V, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::unordered_multimap< K, V, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::unordered_multiset< Key, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::unordered_set< Key, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::vector< bool, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::vector< char, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::vector< T, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::vector< unsigned char, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::wstring >::operator()(), msgpack::adaptor::object_with_zone< T, typename msgpack::enable_if< detail::is_seq_no_pair_no_tuple< T >::value >::type >::operator()(), msgpack::adaptor::object_with_zone< T[N]>::operator()(), msgpack::adaptor::object_with_zone< type::assoc_vector< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< unsigned char[N]>::operator()(), msgpack::adaptor::object_with_zone< const unsigned char[N]>::operator()(), msgpack::adaptor::object_with_zone< std::tuple< Args... > >::operator()(), msgpack::adaptor::pack< const char * >::operator()(), msgpack::adaptor::pack< char[N]>::operator()(), msgpack::adaptor::pack< const char[N]>::operator()(), msgpack::adaptor::pack< msgpack::type::array_ref< T > >::operator()(), msgpack::adaptor::pack< msgpack::type::array_ref< T[N]> >::operator()(), msgpack::adaptor::pack< msgpack::type::ext >::operator()(), msgpack::adaptor::pack< msgpack::type::ext_ref >::operator()(), msgpack::adaptor::pack< std::array< char, N > >::operator()(), msgpack::adaptor::pack< std::array< T, N > >::operator()(), msgpack::adaptor::pack< std::array< unsigned char, N > >::operator()(), msgpack::adaptor::pack< std::deque< T, Alloc > >::operator()(), msgpack::adaptor::pack< std::forward_list< T, Alloc > >::operator()(), msgpack::adaptor::pack< std::list< T, Alloc > >::operator()(), msgpack::adaptor::pack< std::map< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::multimap< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::multiset< T, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::set< T, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::string >::operator()(), msgpack::adaptor::pack< std::tuple< Args... > >::operator()(), msgpack::adaptor::pack< std::unordered_map< K, V, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::unordered_multimap< K, V, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::unordered_multiset< Key, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::unordered_set< Key, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::vector< bool, Alloc > >::operator()(), msgpack::adaptor::pack< std::vector< char, Alloc > >::operator()(), msgpack::adaptor::pack< std::vector< T, Alloc > >::operator()(), msgpack::adaptor::pack< std::vector< unsigned char, Alloc > >::operator()(), msgpack::adaptor::pack< std::wstring >::operator()(), msgpack::adaptor::pack< T, typename msgpack::enable_if< detail::is_seq_no_pair_no_tuple< T >::value >::type >::operator()(), msgpack::adaptor::pack< T[N]>::operator()(), msgpack::adaptor::pack< type::assoc_vector< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< unsigned char[N]>::operator()(), msgpack::adaptor::pack< const unsigned char[N]>::operator()(), msgpack::detail::unpack_array::operator()(), msgpack::detail::unpack_map::operator()(), msgpack::unpacker::reserve_buffer(), msgpack::unpacker::skip_nonparsed_buffer(), msgpack::detail::create_object_visitor::start_array(), msgpack::detail::create_object_visitor::start_map(), msgpack::type::define_array_imp< Tuple, N >::unpack(), msgpack::type::define_array_imp< Tuple, 1 >::unpack(), msgpack::aligned_zone_size_visitor::visit_bin(), msgpack::object_pack_visitor< Stream >::visit_bin(), msgpack::object_stringize_visitor::visit_bin(), msgpack::object_equal_visitor::visit_bin(), msgpack::detail::create_object_visitor::visit_bin(), msgpack::aligned_zone_size_visitor::visit_ext(), msgpack::object_pack_visitor< Stream >::visit_ext(), msgpack::object_equal_visitor::visit_ext(), msgpack::detail::create_object_visitor::visit_ext(), msgpack::aligned_zone_size_visitor::visit_str(), msgpack::object_pack_visitor< Stream >::visit_str(), msgpack::object_stringize_visitor::visit_str(), msgpack::object_equal_visitor::visit_str(), and msgpack::detail::create_object_visitor::visit_str().

◆ tie()

template<class... Args>
tuple< Args &... > msgpack::type::tie ( Args &...  args)
inline

◆ tuple_cat()

template<class... Tuples>
auto msgpack::type::tuple_cat ( Tuples &&...  args) -> decltype(std::tuple_cat(std::forward< typename std::remove_reference< Tuples >::type::base >(args)...))
inline