QScopedArrayPointer< T, Cleanup > Class Template Reference

QScopedArrayPointer< T, Cleanup > Class Template Reference

#include <qscopedpointer.h>

Class Description

template<typename T, typename Cleanup = QScopedPointerArrayDeleter<T>>
class QScopedArrayPointer< T, Cleanup >

Definition at line 208 of file qscopedpointer.h.

+ Inheritance diagram for QScopedArrayPointer< T, Cleanup >:

Public Member Functions

 QScopedArrayPointer ()
 
template<typename D >
 QScopedArrayPointer (D *p, typename QtPrivate::QScopedArrayEnsureSameType< T, D >::Type=0)
 
T & operator[] (int i)
 
const T & operator[] (int i) const
 
- Public Member Functions inherited from QScopedPointer< T, Cleanup >
 QScopedPointer (T *p=0)
 
 ~QScopedPointer ()
 
T & operator* () const
 
T * operator-> () const
 
bool operator! () const
 
 operator RestrictedBool () const
 
T * data () const
 
bool isNull () const
 
void reset (T *other=0)
 
T * take ()
 
void swap (QScopedPointer< T, Cleanup > &other)
 

Additional Inherited Members

- Public Types inherited from QScopedPointer< T, Cleanup >
typedef T * pointer
 
- Protected Attributes inherited from QScopedPointer< T, Cleanup >
T * d
 

Constructor & Destructor Documentation

QScopedArrayPointer ( )
inline

Definition at line 211 of file qscopedpointer.h.

QScopedArrayPointer ( D *  p,
typename QtPrivate::QScopedArrayEnsureSameType< T, D >::Type  = 0 
)
inlineexplicit

Definition at line 214 of file qscopedpointer.h.

216  {
217  }
GLfloat GLfloat p
Definition: GLee.h:5416

Member Function Documentation

T& operator[] ( int  i)
inline

Definition at line 219 of file qscopedpointer.h.

220  {
221  return this->d[i];
222  }
const T& operator[] ( int  i) const
inline

Definition at line 224 of file qscopedpointer.h.

225  {
226  return this->d[i];
227  }

The documentation for this class was generated from the following file: