Loading...
Searching...
No Matches
value.hpp

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>`
Include dependency graph for value.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes

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

## Namespaces

namespace | proton
| The main Proton namespace.

## Functions

template<class T>
T | get (const value &v)
| Get a contained value of type T.
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.
template<class T, class U>
void | get (const U &u, T &x)
template<class T>
T | coerce (const value &v)
| Coerce the contained value to type T.
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.
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.