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/client/Handle.h>
Public Member Functions | |
bool | isValid () const |
bool | isNull () const |
operator bool () const | |
Conversion to bool supports idiom if (handle) { handle->... | |
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 | |
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 qpid::client::Handle< T >::Impl [protected] |
qpid::client::Handle< T >::Handle | ( | ) | [inline, protected] |
qpid::client::Handle< T >::Handle | ( | const Handle< T > & | ) | [protected] |
bool qpid::client::Handle< T >::isNull | ( | ) | const [inline] |
bool qpid::client::Handle< T >::isValid | ( | ) | const [inline] |
qpid::client::Handle< T >::operator bool | ( | ) | const [inline] |
bool qpid::client::Handle< T >::operator! | ( | ) | const [inline] |
Handle& qpid::client::Handle< T >::operator= | ( | const Handle< T > & | ) | [protected] |
void qpid::client::Handle< T >::swap | ( | Handle< T > & | h | ) | [inline] |
Impl* qpid::client::Handle< T >::impl [protected] |
Definition at line 64 of file Handle.h.
Referenced by qpid::client::Handle< SubscriptionImpl >::isNull(), qpid::client::Handle< SubscriptionImpl >::isValid(), qpid::client::Handle< SubscriptionImpl >::operator bool(), qpid::client::Handle< SubscriptionImpl >::operator!(), and qpid::client::Handle< SubscriptionImpl >::swap().