QtCore/qscopedpointer.h Source File
Go to the documentation of this file.
42 #ifndef QSCOPEDPOINTER_H
43 #define QSCOPEDPOINTER_H
59 typedef char IsIncompleteType[
sizeof(T) ? 1 : -1 ];
60 (
void)
sizeof(IsIncompleteType);
74 typedef char IsIncompleteType[
sizeof(T) ? 1 : -1 ];
75 (
void)
sizeof(IsIncompleteType);
86 template <
typename T,
typename Cleanup = QScopedPo
interDeleter<T> >
100 Cleanup::cleanup(oldD);
121 #if defined(Q_CC_NOKIAX86) || defined(Q_QDOC)
122 inline operator bool()
const
127 inline operator RestrictedBool()
const
149 Cleanup::cleanup(oldD);
173 template <
class T,
class Cleanup>
179 template <
class T,
class Cleanup>
185 template <
class T,
class Cleanup>
192 template <
class T,
class Cleanup>
207 template <
typename T,
typename Cleanup = QScopedPo
interArrayDeleter<T> >
213 template <
typename D>
247 #endif // QSCOPEDPOINTER_H
QScopedArrayPointer(D *p, typename QtPrivate::QScopedArrayEnsureSameType< T, D >::Type=0)
void swap(QScopedPointer< T, Cleanup > &other)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
Q_INLINE_TEMPLATE void swap(QT_PREPEND_NAMESPACE(QScopedPointer)< T, Cleanup > &p1, QT_PREPEND_NAMESPACE(QScopedPointer)< T, Cleanup > &p2)
static void cleanup(T *pointer)
const T & operator[](int i) const
bool operator==(const QScopedPointer< T, Cleanup > &lhs, const QScopedPointer< T, Cleanup > &rhs)
#define QT_BEGIN_NAMESPACE
bool operator!=(const QScopedPointer< T, Cleanup > &lhs, const QScopedPointer< T, Cleanup > &rhs)
Q_INLINE_TEMPLATE void qSwap(QScopedPointer< T, Cleanup > &p1, QScopedPointer< T, Cleanup > &p2)
static void cleanup(void *pointer)
static void cleanup(T *pointer)
GLsizei const GLvoid * pointer