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< T >::Impl [protected] |
QMF_INLINE_EXTERN qmf::Handle< T >::Handle | ( | ) | [inline, protected] |
qmf::Handle< T >::Handle | ( | const Handle< T > & | ) | [protected] |
QMF_INLINE_EXTERN bool qmf::Handle< T >::isNull | ( | ) | const [inline] |
QMF_INLINE_EXTERN bool qmf::Handle< T >::isValid | ( | ) | const [inline] |
QMF_INLINE_EXTERN qmf::Handle< T >::operator bool | ( | ) | const [inline] |
QMF_INLINE_EXTERN bool qmf::Handle< T >::operator! | ( | ) | const [inline] |
Handle& qmf::Handle< T >::operator= | ( | const Handle< T > & | ) | [protected] |
void qmf::Handle< T >::swap | ( | Handle< T > & | h | ) | [inline] |
Impl* qmf::Handle< T >::impl [protected] |
Definition at line 63 of file Handle.h.
Referenced by qmf::Handle< AgentEventImpl >::isNull(), qmf::Handle< AgentEventImpl >::isValid(), qmf::Handle< AgentEventImpl >::operator bool(), qmf::Handle< AgentEventImpl >::operator!(), qpid::client::Handle< SubscriptionImpl >::swap(), and qmf::Handle< AgentEventImpl >::swap().