#include <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 |
QPID_MESSAGING_INLINE_EXTERN bool | operator! () const |
void | swap (Handle< T > &h) |
Protected Types | |
typedef T | Impl |
Protected Attributes | |
Impl * | impl |
Friends | |
class | PrivateImplRef< T > |
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.
|
inline |
|
inline |
|
inline |
Conversion to bool supports idiom if (handle) { handle->... }
|
inline |
Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }