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 <qpid/messaging/Handle.h>
Public Member Functions | |
QPID_MESSAGING_INLINE_EXTERN bool | isValid () const |
QPID_MESSAGING_INLINE_EXTERN bool | isNull () const |
QPID_MESSAGING_INLINE_EXTERN | operator bool () const |
Conversion to bool supports idiom if (handle) { handle->... More... | |
QPID_MESSAGING_INLINE_EXTERN bool | operator! () const |
Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }. More... | |
void | swap (Handle< T > &h) |
Protected Types | |
typedef T | Impl |
Protected Member Functions | |
QPID_MESSAGING_INLINE_EXTERN | 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.
|
protected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 65 of file Handle.h.
Referenced by qpid::messaging::Handle< SessionImpl >::isNull(), qpid::messaging::Handle< SessionImpl >::isValid(), qpid::messaging::Handle< SessionImpl >::operator bool(), qpid::messaging::Handle< SessionImpl >::operator!(), and qpid::messaging::Handle< SessionImpl >::swap().