Definition at line 54 of file qpointer.h.
#include <qpointer.h>
Public Member Functions |
|
| QPointer () | |
| QPointer (T *p) | |
| QPointer (const QPointer< T > &p) | |
| ~QPointer () | |
| QPointer< T > & | operator= (const QPointer< T > &p) |
| QPointer< T > & | operator= (T *p) |
| bool | isNull () const |
| T * | operator-> () const |
| T & | operator* () const |
| operator T * () const | |
| T * | data () const |
| QPointer | ( | ) | [inline] |
Definition at line 58 of file qpointer.h.
: o(0) {}
| QPointer | ( | T * | p | ) | [inline] |
Definition at line 59 of file qpointer.h.
: o(p)
{ QMetaObject::addGuard(&o); }
Definition at line 61 of file qpointer.h.
: o(p.o)
{ QMetaObject::addGuard(&o); }
| ~QPointer | ( | ) | [inline] |
Definition at line 63 of file qpointer.h.
{ QMetaObject::removeGuard(&o); }
Definition at line 65 of file qpointer.h.
{ if (this != &p) QMetaObject::changeGuard(&o, p.o); return *this; }
| QPointer<T>& operator= | ( | T * | p | ) | [inline] |
Definition at line 67 of file qpointer.h.
{ if (o != p) QMetaObject::changeGuard(&o, p); return *this; }
| bool isNull | ( | ) | const [inline] |
| T* operator-> | ( | void | ) | const [inline] |
Definition at line 73 of file qpointer.h.
{ return static_cast<T*>(const_cast<QObject*>(o)); }
| T& operator* | ( | ) | const [inline] |
Definition at line 75 of file qpointer.h.
{ return *static_cast<T*>(const_cast<QObject*>(o)); }
| operator T * | ( | ) | const [inline] |
Definition at line 77 of file qpointer.h.
{ return static_cast<T*>(const_cast<QObject*>(o)); }
| T* data | ( | ) | const [inline] |
Definition at line 79 of file qpointer.h.
{ return static_cast<T*>(const_cast<QObject*>(o)); }