value Class Reference

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

#include <value.hpp>

Inheritance diagram for value:

List of all members.

Public Member Functions

 value ()
 Create a null value.
template<class T >
 value (const T &x, typename assignable< T >::type *=0)
 Construct from any allowed type T.
template<class T >
assignable< T, value & >::type operator= (const T &x)
 Assign from any allowed type T.
void clear ()
 Reset the value to null.
Copy a value



 value (const value &)
valueoperator= (const value &)

Friends

void swap (value &, value &)
std::ostream & operator<< (std::ostream &, const value &)
Comparison operators



bool operator== (const value &x, const value &y)
bool operator< (const value &x, const value &y)

Related Functions

(Note that these are not member functions.)



template<class T >
void get (const value &v, T &x)
 Like get(const value&) but assigns the value to a reference instead of returning it.
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.

Detailed Description

A holder for any AMQP value, simple or complex.

See also:
types_page
Examples:

service_bus.cpp.


Friends And Related Function Documentation

void coerce ( const value v,
T &  x 
) [related]

Like coerce(const value&) but assigns the value to a reference instead of returning it.

May be more efficient for complex values (arrays, maps, etc.)

void get ( const value v,
T &  x 
) [related]

Like get(const value&) but assigns the value to a reference instead of returning it.

May be more efficient for complex values (arrays, maps, etc.)

void swap ( value ,
value  
) [friend]

swap values


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

Generated on 13 Mar 2017 for Qpid Proton C++ by  doxygen 1.6.1