Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
A handle is like a pointer: refers to an underlying implementation object. More...
#include <qmf/Handle.h>
Public Member Functions | |
QMF_INLINE_EXTERN bool | isValid () const |
QMF_INLINE_EXTERN bool | isNull () const |
QMF_INLINE_EXTERN | operator bool () const |
Conversion to bool supports idiom if (handle) { handle->... | |
QMF_INLINE_EXTERN bool | operator! () const |
Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }. | |
void | swap (Handle< T > &h) |
Protected Types | |
typedef T | Impl |
Protected Member Functions | |
QMF_INLINE_EXTERN | Handle () |
Handle (const Handle &) | |
Handle & | operator= (const Handle &) |
Protected Attributes | |
Impl * | impl |
A handle is like a pointer: refers to an underlying implementation object.
Copying the handle does not copy the object.
Handles can be null, like a 0 pointer. Use isValid(), isNull() or the conversion to bool to test for a null handle.
typedef T qmf::Handle::Impl [protected] |
QMF_INLINE_EXTERN qmf::Handle::Handle | ( | ) | [inline, protected] |
qmf::Handle::Handle | ( | const Handle & | ) | [protected] |
QMF_INLINE_EXTERN bool qmf::Handle::isNull | ( | ) | const [inline] |
QMF_INLINE_EXTERN bool qmf::Handle::isValid | ( | ) | const [inline] |
QMF_INLINE_EXTERN qmf::Handle::operator bool | ( | ) | const [inline] |
QMF_INLINE_EXTERN bool qmf::Handle::operator! | ( | ) | const [inline] |
Impl* qmf::Handle::impl [protected] |
Definition at line 63 of file Handle.h.
Referenced by qmf::Handle< AgentEventImpl >::isValid(), qmf::Handle< AgentEventImpl >::isNull(), qmf::Handle< AgentEventImpl >::operator bool(), qmf::Handle< AgentEventImpl >::operator!(), and qmf::Handle< AgentEventImpl >::swap().