qpid::framing::BodyHolder Class Reference

Holder for arbitrary frame body. More...

#include <BodyHolder.h>

Inheritance diagram for qpid::framing::BodyHolder:

Inheritance graph
[legend]
Collaboration diagram for qpid::framing::BodyHolder:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BodyHolder (const AMQBody &b)
 BodyHolder (ClassId c, MethodId m)
template<class InPlace>
 BodyHolder (const InPlace &ip, typename EnableInPlace< InPlace >::type *=0)
 Construct from an in_place constructor expression.
void setBody (const AMQBody &b)
template<class InPlace>
EnableInPlace< InPlace,
BodyHolder & >::type 
operator= (const InPlace &ip)
 Assign from an in_place constructor expression.
template<class T>
DisableInPlace< T, BodyHolder & >
::type 
operator= (const T &x)
 Assign by copying.
void setMethod (ClassId c, MethodId m)
 Set to method with ClassId c, MethodId m.
void encode (Buffer &) const
void decode (uint8_t frameType, Buffer &, uint32_t=0)
uint32_t size () const
AMQBody * get ()
 Return body pointer or 0 if empty.
const AMQBody * get () const
AMQMethodBody * getMethod ()
 Return method pointer or 0 if not a method.
const AMQMethodBody * getMethod () const


Detailed Description

Holder for arbitrary frame body.

Constructor & Destructor Documentation

template<class InPlace>
qpid::framing::BodyHolder::BodyHolder ( const InPlace &  ip,
typename EnableInPlace< InPlace >::type *  = 0 
) [inline]

Construct from an in_place constructor expression.


Member Function Documentation

template<class InPlace>
EnableInPlace<InPlace,BodyHolder&>::type qpid::framing::BodyHolder::operator= ( const InPlace &  ip  )  [inline]

Assign from an in_place constructor expression.

template<class T>
DisableInPlace<T,BodyHolder&>::type qpid::framing::BodyHolder::operator= ( const T &  x  )  [inline]

Assign by copying.

void qpid::framing::BodyHolder::setMethod ( ClassId  c,
MethodId  m 
)

Set to method with ClassId c, MethodId m.

AMQBody* qpid::framing::BodyHolder::get (  )  [inline]

Return body pointer or 0 if empty.

AMQMethodBody* qpid::framing::BodyHolder::getMethod (  )  [inline]

Return method pointer or 0 if not a method.


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

Generated on Thu May 15 22:24:27 2008 for Qpid by  doxygen 1.5.5