![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmlrefcount_p.h>
Public Types | |
| enum | Mode { AddRef , Adopt } |
Public Member Functions | |
| Q_NODISCARD_CTOR | QQmlRefPointer () noexcept |
| Q_NODISCARD_CTOR | QQmlRefPointer (T *, Mode m=AddRef) |
| Q_NODISCARD_CTOR | QQmlRefPointer (const QQmlRefPointer &) |
| Q_NODISCARD_CTOR | QQmlRefPointer (QQmlRefPointer &&) noexcept |
| ~QQmlRefPointer () | |
| void | swap (QQmlRefPointer &other) noexcept |
| QQmlRefPointer< T > & | operator= (const QQmlRefPointer< T > &o) |
| QQmlRefPointer< T > & | operator= (QQmlRefPointer< T > &&o) noexcept |
| bool | isNull () const |
| T * | operator-> () const |
| T & | operator* () const |
| operator bool () const | |
| T * | data () const |
| QQmlRefPointer< T > & | adopt (T *) |
| Takes ownership of other. | |
| T * | take () |
| void | reset (T *t=nullptr) |
Friends | |
| bool | operator== (const QQmlRefPointer &a, const QQmlRefPointer &b) noexcept |
| bool | operator!= (const QQmlRefPointer &a, const QQmlRefPointer &b) noexcept |
| size_t | qHash (const QQmlRefPointer &v, size_t seed=0) noexcept |
Definition at line 54 of file qqmlrefcount_p.h.
| enum QQmlRefPointer::Mode |
| Enumerator | |
|---|---|
| AddRef | |
| Adopt | |
Definition at line 57 of file qqmlrefcount_p.h.
|
inlinenoexcept |
Definition at line 171 of file qqmlrefcount_p.h.
|
inline |
Definition at line 177 of file qqmlrefcount_p.h.
References AddRef.
|
inline |
Definition at line 185 of file qqmlrefcount_p.h.
|
inlinenoexcept |
Definition at line 192 of file qqmlrefcount_p.h.
References take().
|
inline |
Definition at line 198 of file qqmlrefcount_p.h.
|
inline |
Takes ownership of other.
take() does not add a reference, as it assumes ownership of the callers reference of other.
Definition at line 229 of file qqmlrefcount_p.h.
|
inline |
Definition at line 77 of file qqmlrefcount_p.h.
|
inline |
Definition at line 72 of file qqmlrefcount_p.h.
|
inlineexplicit |
Definition at line 76 of file qqmlrefcount_p.h.
|
inline |
Definition at line 75 of file qqmlrefcount_p.h.
|
inline |
Definition at line 74 of file qqmlrefcount_p.h.
|
inline |
Definition at line 204 of file qqmlrefcount_p.h.
|
inlinenoexcept |
Definition at line 217 of file qqmlrefcount_p.h.
References swap().
|
inline |
Definition at line 98 of file qqmlrefcount_p.h.
|
inlinenoexcept |
Definition at line 67 of file qqmlrefcount_p.h.
Referenced by operator=().
|
inline |
Definition at line 81 of file qqmlrefcount_p.h.
Referenced by QQmlRefPointer().
|
friend |
Definition at line 88 of file qqmlrefcount_p.h.
|
friend |
Definition at line 83 of file qqmlrefcount_p.h.
|
friend |
Definition at line 93 of file qqmlrefcount_p.h.