95 if (_toHandle == p._toHandle)
99 _toHandle = p._toHandle;
115 operator T*()
const {
121 return _toHandle < p._toHandle;
126 return _toHandle == p._toHandle;
130 return _toHandle != p._toHandle;
139 return _toHandle != 0;
144 return _toHandle == 0;
150 return _toHandle->getRefCount();
170 int getRefCount(
void)
const;
177 QAtomicInt* _lRefCount;
182 #endif // BASE_HANDLE_H Reference(const Reference< T > &p)
Definition: Handle.h:61
int getRefCount(void) const
Get number of references on the object, including this one.
Definition: Handle.h:148
Reference< T > & operator=(T *p)
Definition: Handle.h:80
bool operator<(const Reference< T > &p) const
Definition: Handle.h:120
Reference(T *p)
Definition: Handle.h:55
Reference< T > & operator=(const Reference< T > &p)
Definition: Handle.h:93
Reference()
Definition: Handle.h:52
bool isNull(void) const
Test if it does not handle anything.
Definition: Handle.h:143
bool isValid(void) const
Test if it handles something.
Definition: Handle.h:138
~Reference()
Definition: Handle.h:71
bool operator==(const Reference< T > &p) const
Definition: Handle.h:125
bool operator!=(const Reference< T > &p) const
Definition: Handle.h:129
Definition: AbstractXMLReader.h:5
T * operator->() const
Definition: Handle.h:111
T & operator *() const
Definition: Handle.h:106