Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
#include <qmf/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 |
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.
Definition at line 38 of file Handle.h.
typedef T qmf::Handle< T >::Impl [protected] |
qmf::Handle< T >::Handle | ( | ) | [inline, protected] |
qmf::Handle< T >::Handle | ( | const Handle< T > & | ) | [protected] |
bool qmf::Handle< T >::isNull | ( | ) | const [inline] |
bool qmf::Handle< T >::isValid | ( | ) | const [inline] |
qmf::Handle< T >::operator bool | ( | ) | const [inline] |
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!(), and qmf::Handle< AgentEventImpl >::swap().