MessagePack for C++
Public Types | Public Member Functions | List of all members
msgpack::type::basic_variant< STR, BIN, EXT > Struct Template Reference

#include <msgpack_variant.hpp>

Inheritance diagram for msgpack::type::basic_variant< STR, BIN, EXT >:
Inheritance graph
[legend]
Collaboration diagram for msgpack::type::basic_variant< STR, BIN, EXT >:
Collaboration graph
[legend]

Public Types

typedef boost::variant< nil_t, bool, int64_t, uint64_t, double, std::string, std::vector< char >, msgpack::type::raw_ref, msgpack::type::ext, msgpack::type::ext_ref, boost::recursive_wrapper< std::vector< basic_variant< STR, BIN, EXT > > >, boost::recursive_wrapper< std::map< basic_variant< STR, BIN, EXT >, basic_variant< STR, BIN, EXT > > >, boost::recursive_wrapper< std::multimap< basic_variant< STR, BIN, EXT >, basic_variant< STR, BIN, EXT > > > > base
 

Public Member Functions

 basic_variant ()
 
template<typename T >
 basic_variant (T const &t)
 
 basic_variant (char const *p)
 
 basic_variant (char v)
 
 basic_variant (signed char v)
 
 basic_variant (unsigned char v)
 
 basic_variant (signed int v)
 
 basic_variant (unsigned int v)
 
 basic_variant (signed long v)
 
 basic_variant (unsigned long v)
 
 basic_variant (signed long long v)
 
 basic_variant (unsigned long long v)
 
bool is_nil () const
 
bool is_bool () const
 
bool is_int64_t () const
 
bool is_uint64_t () const
 
bool is_double () const
 
bool is_string () const
 
bool is_vector_char () const
 
bool is_vector_char ()
 
bool is_raw_ref () const
 
bool is_ext () const
 
bool is_ext_ref () const
 
bool is_vector () const
 
bool is_map () const
 
bool is_multimap () const
 
bool as_bool () const
 
int64_t as_int64_t () const
 
int64_t & as_int64_t ()
 
uint64_t as_uint64_t () const
 
uint64_t & as_uint64_t ()
 
double as_double () const
 
double & as_double ()
 
std::string const & as_string () const
 
std::string & as_string ()
 
std::vector< char > const & as_vector_char () const
 
std::vector< char > & as_vector_char ()
 
raw_ref const & as_raw_ref () const
 
ext const & as_ext () const
 
extas_ext ()
 
ext_ref const & as_ext_ref () const
 
std::vector< basic_variant< STR, BIN, EXT > > const & as_vector () const
 
std::vector< basic_variant< STR, BIN, EXT > > & as_vector ()
 
std::map< basic_variant< STR, BIN, EXT >, basic_variant< STR, BIN, EXT > > const & as_map () const
 
std::map< basic_variant< STR, BIN, EXT >, basic_variant< STR, BIN, EXT > > & as_map ()
 
std::multimap< basic_variant< STR, BIN, EXT >, basic_variant< STR, BIN, EXT > > const & as_multimap () const
 
std::multimap< basic_variant< STR, BIN, EXT >, basic_variant< STR, BIN, EXT > > & as_multimap ()
 

Member Typedef Documentation

◆ base

template<typename STR , typename BIN , typename EXT >
typedef boost::variant< nil_t, bool, int64_t, uint64_t, double, std::string, std::vector<char>, msgpack::type::raw_ref, msgpack::type::ext, msgpack::type::ext_ref, boost::recursive_wrapper<std::vector<basic_variant<STR, BIN, EXT> > >, boost::recursive_wrapper<std::map<basic_variant<STR, BIN, EXT>, basic_variant<STR, BIN, EXT> > >, boost::recursive_wrapper<std::multimap<basic_variant<STR, BIN, EXT>, basic_variant<STR, BIN, EXT> > > > msgpack::type::basic_variant< STR, BIN, EXT >::base

Constructor & Destructor Documentation

◆ basic_variant() [1/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( )
inline

◆ basic_variant() [2/12]

template<typename STR , typename BIN , typename EXT >
template<typename T >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( T const &  t)
inline

◆ basic_variant() [3/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( char const *  p)
inline

◆ basic_variant() [4/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( char  v)
inline

◆ basic_variant() [5/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( signed char  v)
inline

◆ basic_variant() [6/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( unsigned char  v)
inline

◆ basic_variant() [7/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( signed int  v)
inline

◆ basic_variant() [8/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( unsigned int  v)
inline

◆ basic_variant() [9/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( signed long  v)
inline

◆ basic_variant() [10/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( unsigned long  v)
inline

◆ basic_variant() [11/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( signed long long  v)
inline

◆ basic_variant() [12/12]

template<typename STR , typename BIN , typename EXT >
msgpack::type::basic_variant< STR, BIN, EXT >::basic_variant ( unsigned long long  v)
inline

Member Function Documentation

◆ as_bool()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::as_bool ( ) const
inline

◆ as_double() [1/2]

template<typename STR , typename BIN , typename EXT >
double& msgpack::type::basic_variant< STR, BIN, EXT >::as_double ( )
inline

◆ as_double() [2/2]

template<typename STR , typename BIN , typename EXT >
double msgpack::type::basic_variant< STR, BIN, EXT >::as_double ( ) const
inline

◆ as_ext() [1/2]

template<typename STR , typename BIN , typename EXT >
ext& msgpack::type::basic_variant< STR, BIN, EXT >::as_ext ( )
inline

◆ as_ext() [2/2]

template<typename STR , typename BIN , typename EXT >
ext const& msgpack::type::basic_variant< STR, BIN, EXT >::as_ext ( ) const
inline

◆ as_ext_ref()

template<typename STR , typename BIN , typename EXT >
ext_ref const& msgpack::type::basic_variant< STR, BIN, EXT >::as_ext_ref ( ) const
inline

◆ as_int64_t() [1/2]

template<typename STR , typename BIN , typename EXT >
int64_t& msgpack::type::basic_variant< STR, BIN, EXT >::as_int64_t ( )
inline

◆ as_int64_t() [2/2]

template<typename STR , typename BIN , typename EXT >
int64_t msgpack::type::basic_variant< STR, BIN, EXT >::as_int64_t ( ) const
inline

◆ as_map() [1/2]

template<typename STR , typename BIN , typename EXT >
std::map<basic_variant<STR, BIN, EXT>, basic_variant<STR, BIN, EXT> >& msgpack::type::basic_variant< STR, BIN, EXT >::as_map ( )
inline

◆ as_map() [2/2]

template<typename STR , typename BIN , typename EXT >
std::map<basic_variant<STR, BIN, EXT>, basic_variant<STR, BIN, EXT> > const& msgpack::type::basic_variant< STR, BIN, EXT >::as_map ( ) const
inline

◆ as_multimap() [1/2]

template<typename STR , typename BIN , typename EXT >
std::multimap<basic_variant<STR, BIN, EXT>, basic_variant<STR, BIN, EXT> >& msgpack::type::basic_variant< STR, BIN, EXT >::as_multimap ( )
inline

◆ as_multimap() [2/2]

template<typename STR , typename BIN , typename EXT >
std::multimap<basic_variant<STR, BIN, EXT>, basic_variant<STR, BIN, EXT> > const& msgpack::type::basic_variant< STR, BIN, EXT >::as_multimap ( ) const
inline

◆ as_raw_ref()

template<typename STR , typename BIN , typename EXT >
raw_ref const& msgpack::type::basic_variant< STR, BIN, EXT >::as_raw_ref ( ) const
inline

◆ as_string() [1/2]

template<typename STR , typename BIN , typename EXT >
std::string& msgpack::type::basic_variant< STR, BIN, EXT >::as_string ( )
inline

◆ as_string() [2/2]

template<typename STR , typename BIN , typename EXT >
std::string const& msgpack::type::basic_variant< STR, BIN, EXT >::as_string ( ) const
inline

◆ as_uint64_t() [1/2]

template<typename STR , typename BIN , typename EXT >
uint64_t& msgpack::type::basic_variant< STR, BIN, EXT >::as_uint64_t ( )
inline

◆ as_uint64_t() [2/2]

template<typename STR , typename BIN , typename EXT >
uint64_t msgpack::type::basic_variant< STR, BIN, EXT >::as_uint64_t ( ) const
inline

◆ as_vector() [1/2]

template<typename STR , typename BIN , typename EXT >
std::vector<basic_variant<STR, BIN, EXT> >& msgpack::type::basic_variant< STR, BIN, EXT >::as_vector ( )
inline

◆ as_vector() [2/2]

template<typename STR , typename BIN , typename EXT >
std::vector<basic_variant<STR, BIN, EXT> > const& msgpack::type::basic_variant< STR, BIN, EXT >::as_vector ( ) const
inline

◆ as_vector_char() [1/2]

template<typename STR , typename BIN , typename EXT >
std::vector<char>& msgpack::type::basic_variant< STR, BIN, EXT >::as_vector_char ( )
inline

◆ as_vector_char() [2/2]

template<typename STR , typename BIN , typename EXT >
std::vector<char> const& msgpack::type::basic_variant< STR, BIN, EXT >::as_vector_char ( ) const
inline

◆ is_bool()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_bool ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_double()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_double ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_ext()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_ext ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_ext_ref()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_ext_ref ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_int64_t()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_int64_t ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_map()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_map ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_multimap()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_multimap ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_nil()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_nil ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_raw_ref()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_raw_ref ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_string()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_string ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_uint64_t()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_uint64_t ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_vector()

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_vector ( ) const
inline

References MSGPACK_NULLPTR.

◆ is_vector_char() [1/2]

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_vector_char ( )
inline

References MSGPACK_NULLPTR.

◆ is_vector_char() [2/2]

template<typename STR , typename BIN , typename EXT >
bool msgpack::type::basic_variant< STR, BIN, EXT >::is_vector_char ( ) const
inline

References MSGPACK_NULLPTR.


The documentation for this struct was generated from the following file: