#include <Blob.h>
Public Member Functions | |
Blob () | |
Construct an empty Blob. | |
Blob (const Blob &b) | |
Copy a Blob. | |
template<class InPlace> | |
Blob (const InPlace &expr, typename EnableInPlace< InPlace >::type *=0) | |
Construct from in_place constructor. | |
template<class T> | |
Blob (const T &t, typename DisableInPlace< T >::type *=0) | |
Construct by copying an object constructor. | |
Blob & | operator= (const Blob &b) |
Assign from another Blob. | |
template<class InPlace> | |
EnableInPlace< InPlace, Blob & > ::type | operator= (const InPlace &expr) |
Assign from an in_place constructor expression. | |
template<class T> | |
DisableInPlace< T, Blob & >::type | operator= (const T &x) |
Assign from an object of type T. | |
BaseType * | get () |
Get pointer to Blob contents, returns 0 if empty. | |
const BaseType * | get () const |
Get pointer to Blob contents, returns 0 if empty. | |
void | clear () |
Destroy the object in the Blob making it empty. | |
bool | empty () const |
Static Public Member Functions | |
static size_t | size () |
Using Blobs ensures proper construction and destruction of its contents, and proper copying between Blobs, but nothing else.
In particular you must ensure that the Blob is big enough for its contents and must know the type of object in the Blob to cast get().
If BaseType is specified then only an object that can be static_cast to BaseType may be stored in the Blob.
qpid::framing::Blob< Size, BaseType >::Blob | ( | ) | [inline] |
Construct an empty Blob.
qpid::framing::Blob< Size, BaseType >::Blob | ( | const Blob< Size, BaseType > & | b | ) | [inline] |
Copy a Blob.
qpid::framing::Blob< Size, BaseType >::Blob | ( | const InPlace & | expr, | |
typename EnableInPlace< InPlace >::type * | = 0 | |||
) | [inline] |
Construct from in_place constructor.
qpid::framing::Blob< Size, BaseType >::Blob | ( | const T & | t, | |
typename DisableInPlace< T >::type * | = 0 | |||
) | [inline] |
Construct by copying an object constructor.
Blob& qpid::framing::Blob< Size, BaseType >::operator= | ( | const Blob< Size, BaseType > & | b | ) | [inline] |
Assign from another Blob.
EnableInPlace<InPlace,Blob&>::type qpid::framing::Blob< Size, BaseType >::operator= | ( | const InPlace & | expr | ) | [inline] |
Assign from an in_place constructor expression.
DisableInPlace<T, Blob&>::type qpid::framing::Blob< Size, BaseType >::operator= | ( | const T & | x | ) | [inline] |
Assign from an object of type T.
BaseType* qpid::framing::Blob< Size, BaseType >::get | ( | ) | [inline] |
Get pointer to Blob contents, returns 0 if empty.
const BaseType* qpid::framing::Blob< Size, BaseType >::get | ( | ) | const [inline] |
Get pointer to Blob contents, returns 0 if empty.
void qpid::framing::Blob< Size, BaseType >::clear | ( | ) | [inline] |
Destroy the object in the Blob making it empty.
Referenced by qpid::framing::Blob< Size, BaseHeld >::operator=().