Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 QQmlRefPointer< T >::AddRef, and o.
|
inline |
Definition at line 184 of file qqmlrefcount_p.h.
|
inlinenoexcept |
Definition at line 191 of file qqmlrefcount_p.h.
|
inline |
Definition at line 197 of file qqmlrefcount_p.h.
References o.
|
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.
Referenced by QQmlOpenMetaObject::QQmlOpenMetaObject(), QQuickPropertyChangesPrivate::decodeBinding(), QQmlScriptBlob::done(), and QQmlBoundSignal::takeExpression().
|
inline |
Definition at line 76 of file qqmlrefcount_p.h.
Referenced by QQmlTypeData::compilationUnit(), QQmlScriptBlob::done(), QQmlTypeData::done(), QQuickReplaceSignalHandler::execute(), QQmlBoundSignal::expression(), QQmlPrivate::findObjectPropertyQmlData(), QQmlPropertyCache::firstCppMetaObject(), QV4::QQmlContextWrapper::getPropertyAndBase(), qmlobject_can_qml_cast(), QQuickReplaceSignalHandler::reverse(), QQuickReplaceSignalHandler::rewind(), QQmlPropertyCacheVector::set(), QQmlJavaScriptExpression::setContext(), QQmlGuardedContextData::setContextData(), QQmlPropertyCacheVector::setOwn(), and QQmlOpenMetaObject::type().
|
inline |
Definition at line 71 of file qqmlrefcount_p.h.
Referenced by QQmlXMLHttpRequest::QQmlXMLHttpRequest(), QV4::ResolvedTypeReference::addToHash(), QQmlPropertyCacheCreator< ObjectContainer >::buildMetaObjectsIncrementally(), and QQmlIncubator::clear().
|
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 |
|
inlinenoexcept |
Definition at line 216 of file qqmlrefcount_p.h.
References other(), and swap().
|
inline |
Definition at line 97 of file qqmlrefcount_p.h.
Referenced by QQmlProperty::QQmlProperty(), QQmlProperty::QQmlProperty(), QQmlComponentPrivate::clear(), QQmlIncubatorPrivate::clear(), QQmlData::destroyed(), QQmlDelegateModelItem::destroyObject(), QQmlTypeData::done(), QQmlOpenMetaObject::setCached(), QQmlJavaScriptExpression::setupFunction(), QQDMIncubationTask::statusChanged(), and QQmlComponentPrivate::typeDataReady().
|
inlinenoexcept |
Definition at line 66 of file qqmlrefcount_p.h.
References other(), and qt_ptr_swap().
|
inline |
Definition at line 80 of file qqmlrefcount_p.h.
|
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.