![]() |
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 53 of file qqmlrefcount_p.h.
enum QQmlRefPointer::Mode |
Enumerator | |
---|---|
AddRef | |
Adopt |
Definition at line 56 of file qqmlrefcount_p.h.
|
inlinenoexcept |
Definition at line 170 of file qqmlrefcount_p.h.
|
inline |
Definition at line 176 of file qqmlrefcount_p.h.
References AddRef.
|
inline |
Definition at line 184 of file qqmlrefcount_p.h.
|
inlinenoexcept |
Definition at line 191 of file qqmlrefcount_p.h.
References take().
|
inline |
Definition at line 197 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 228 of file qqmlrefcount_p.h.
|
inline |
Definition at line 76 of file qqmlrefcount_p.h.
|
inline |
Definition at line 71 of file qqmlrefcount_p.h.
|
inlineexplicit |
Definition at line 75 of file qqmlrefcount_p.h.
|
inline |
Definition at line 74 of file qqmlrefcount_p.h.
|
inline |
Definition at line 73 of file qqmlrefcount_p.h.
|
inline |
Definition at line 203 of file qqmlrefcount_p.h.
|
inlinenoexcept |
Definition at line 216 of file qqmlrefcount_p.h.
References swap().
|
inline |
Definition at line 97 of file qqmlrefcount_p.h.
|
inlinenoexcept |
Definition at line 66 of file qqmlrefcount_p.h.
Referenced by operator=().
|
inline |
Definition at line 80 of file qqmlrefcount_p.h.
Referenced by QQmlRefPointer().
|
friend |
Definition at line 87 of file qqmlrefcount_p.h.
|
friend |
Definition at line 82 of file qqmlrefcount_p.h.
|
friend |
Definition at line 92 of file qqmlrefcount_p.h.