1 #ifndef QPID_MESSAGING_HANDLE_H 2 #define QPID_MESSAGING_HANDLE_H 25 #include "qpid/messaging/ImportExport.h" 30 template <
class>
class PrivateImplRef;
43 QPID_MESSAGING_INLINE_EXTERN
bool isValid()
const {
return impl; }
46 QPID_MESSAGING_INLINE_EXTERN
bool isNull()
const {
return !impl; }
49 QPID_MESSAGING_INLINE_EXTERN
operator bool()
const {
return impl; }
52 QPID_MESSAGING_INLINE_EXTERN
bool operator !()
const {
return !impl; }
54 void swap(
Handle<T>& h) { T* t = h.impl; h.impl = impl; impl = t; }
63 QPID_MESSAGING_INLINE_EXTERN
Handle() :impl() {}
Definition: Connection.h:36
QPID_MESSAGING_INLINE_EXTERN bool operator!() const
Definition: Handle.h:52
QPID_MESSAGING_INLINE_EXTERN bool isValid() const
Definition: Handle.h:43
QPID_MESSAGING_INLINE_EXTERN bool isNull() const
Definition: Handle.h:46