Qpid Proton C++ API  0.38.0
value.hpp File Reference

A holder for any AMQP value, simple or complex. More...

#include "./codec/encoder.hpp"
#include "./codec/decoder.hpp"
#include "./internal/type_traits.hpp"
#include "./scalar.hpp"
#include "./types_fwd.hpp"
#include <proton/type_compat.h>
#include <iosfwd>

Go to the source code of this file.

Classes

class  value
 A holder for any AMQP value, simple or complex. More...
 

Namespaces

 proton
 The main Proton namespace.
 

Functions

template<class T >
get (const value &v)
 Get a contained value of type T. More...
 
template<class T >
void get (const value &v, T &x)
 Like get(const value&) but extracts the value to a reference x instead of returning it. More...
 
template<class T , class U >
void get (const U &u, T &x)
 
template<class T >
coerce (const value &v)
 Coerce the contained value to type T. More...
 
template<class T >
void coerce (const value &v, T &x)
 Like coerce(const value&) but assigns the value to a reference instead of returning it. More...
 
template<>
void get< null > (const value &v, null &)
 Special case for null, just checks that value contains NULL.
 
template<>
void get< decltype(nullptr)> (const value &v, decltype(nullptr)&)
 Special case for null, just checks that value contains NULL.
 
std::string to_string (const value &x)
 Return a readable string representation of x for display purposes.
 

Detailed Description

A holder for any AMQP value, simple or complex.