53 #ifndef QSCOPEDPOINTER_P_H 54 #define QSCOPEDPOINTER_P_H 56 #include "QtCore/qscopedpointer.h" 65 template <
typename T,
typename Cleanup = QScopedPo
interDeleter<T> >
81 return this->
d == other.
d;
86 return this->
d != other.
d;
100 if (d && !d->ref.deref())
108 template <
typename T>
124 if (this->
d == other)
135 return this->
d == other.
d;
140 return this->
d != other.
d;
QScopedSharedPointer(T *p=0)
void qAtomicDetach(T *&d)
This is a helper for the detach method of implicitly shared classes.
#define QT_END_NAMESPACE
This macro expands to.
bool operator==(const QCustomScopedPointer< T, Cleanup > &other) const
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
bool operator==(const QScopedSharedPointer< T > &other) const
The QScopedPointer class stores a pointer to a dynamically allocated object, and deletes it upon dest...
#define QT_BEGIN_NAMESPACE
This macro expands to.
static void cleanup(T *d)
bool operator!=(const QCustomScopedPointer< T, Cleanup > &other) const
bool operator!=(const QScopedSharedPointer< T > &other) const
QCustomScopedPointer(T *p=0)