Definition at line 122 of file qsharedpointer_impl.h.
#include <qsharedpointer_impl.h>

Public Types |
|
| typedef T | Type |
| typedef T | element_type |
| typedef T | value_type |
| typedef value_type * | pointer |
| typedef const value_type * | const_pointer |
| typedef value_type & | reference |
| typedef const value_type & | const_reference |
| typedef qptrdiff | difference_type |
Public Member Functions |
|
| T * | data () const |
| bool | isNull () const |
| operator RestrictedBool () const | |
| bool | operator! () const |
| T & | operator* () const |
| T * | operator-> () const |
Protected Member Functions |
|
| Basic (T *ptr=0) | |
| Basic (Qt::Initialization) | |
| void | internalConstruct (T *ptr) |
Protected Attributes |
|
| Type * | value |
Friends |
|
| template<class X > | |
| class | QT_PREPEND_NAMESPACE (QWeakPointer) |
| typedef T Type |
Definition at line 128 of file qsharedpointer_impl.h.
| typedef T element_type |
Definition at line 129 of file qsharedpointer_impl.h.
| typedef T value_type |
Definition at line 130 of file qsharedpointer_impl.h.
| typedef value_type* pointer |
Definition at line 131 of file qsharedpointer_impl.h.
| typedef const value_type* const_pointer |
Definition at line 132 of file qsharedpointer_impl.h.
| typedef value_type& reference |
Definition at line 133 of file qsharedpointer_impl.h.
| typedef const value_type& const_reference |
Definition at line 134 of file qsharedpointer_impl.h.
| typedef qptrdiff difference_type |
Definition at line 135 of file qsharedpointer_impl.h.
| Basic | ( | T * | ptr = 0 |
) | [inline, protected] |
Definition at line 149 of file qsharedpointer_impl.h.
: value(ptr) { }
| Basic | ( | Qt::Initialization | ) | [inline, protected] |
Definition at line 150 of file qsharedpointer_impl.h.
{ }
| T* data | ( | ) | const [inline] |
| bool isNull | ( | ) | const [inline] |
Definition at line 138 of file qsharedpointer_impl.h.
{ return !data(); }
| operator RestrictedBool | ( | ) | const [inline] |
Definition at line 140 of file qsharedpointer_impl.h.
{ return isNull() ? 0 : &Basic::value; }
| bool operator! | ( | void | ) | const [inline] |
Definition at line 144 of file qsharedpointer_impl.h.
{ return isNull(); }
| T& operator* | ( | ) | const [inline] |
Definition at line 145 of file qsharedpointer_impl.h.
{ return *data(); }
| T* operator-> | ( | void | ) | const [inline] |
Definition at line 146 of file qsharedpointer_impl.h.
{ return data(); }
| void internalConstruct | ( | T * | ptr | ) | [inline, protected] |
Reimplemented in ExternalRefCount< T >, and ExternalRefCount< mudbox::BrushOperation >.
Definition at line 153 of file qsharedpointer_impl.h.
{
value = ptr;
}
| class QT_PREPEND_NAMESPACE | ( | QWeakPointer | ) | [friend] |
Reimplemented in ExternalRefCount< T >, and ExternalRefCount< mudbox::BrushOperation >.
Definition at line 164 of file qsharedpointer_impl.h.