![]() |
Qt 6.x
The Qt SDK
|
#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) |
bool | operator!= (const QQmlRefPointer &a, const QQmlRefPointer &b) |
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 158 of file qqmlrefcount_p.h.
|
inline |
Definition at line 164 of file qqmlrefcount_p.h.
References QQmlRefPointer< T >::AddRef, and o.
|
inline |
Definition at line 172 of file qqmlrefcount_p.h.
|
inlinenoexcept |
Definition at line 179 of file qqmlrefcount_p.h.
|
inline |
Definition at line 185 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 216 of file qqmlrefcount_p.h.
Referenced by QQmlOpenMetaObject::QQmlOpenMetaObject(), QQmlPropertyCache::createStandalone(), QQuickPropertyChangesPrivate::decodeBinding(), QQmlScriptBlob::done(), QQuickCanvasItem::loadImage(), and QQmlBoundSignal::takeExpression().
|
inline |
Definition at line 76 of file qqmlrefcount_p.h.
Referenced by TestCaseCollector::TestCaseCollector(), QV4::canConvert(), QQmlPropertyCapture::captureProperty(), QQmlPrivate::changeObjectProperty(), QQmlTypeData::compilationUnit(), QQmlPropertyCacheCreator< ObjectContainer >::createMetaObject(), QV4::QObjectWrapper::destroyObject(), QQmlScriptBlob::done(), QQmlTypeData::done(), QQuickReplaceSignalHandler::execute(), QQmlBoundSignal::expression(), QQmlPropertyCache::firstCppMetaObject(), QV4::QQmlContextWrapper::getPropertyAndBase(), QQmlTypeLoader::Blob::importQmldirScripts(), QQmlPrivate::AOTCompiledContext::initLoadContextIdLookup(), QQmlPrivate::loadObjectProperty(), QV4::QObjectWrapper::lookupMethodGetterImpl(), QV4::QObjectWrapper::lookupPropertyGetterImpl(), QV4::QObjectWrapper::method_connect(), qmlobject_can_qml_cast(), qQmlPropertyCacheProperty(), QQuickReplaceSignalHandler::reverse(), QQuickReplaceSignalHandler::rewind(), QQmlPropertyCacheVector::set(), QQmlContextData::setChildContexts(), QV4::ResolvedTypeReference::setCompilationUnit(), QQmlJavaScriptExpression::setContext(), QQmlGuardedContextData::setContextData(), QQmlEngine::setContextForObject(), QQmlPropertyCacheVector::setOwn(), QV4::QObjectWrapper::setProperty(), QV4::setupQObjectLookup(), QV4::setupQObjectMethodLookup(), and QQmlOpenMetaObject::type().
|
inline |
Definition at line 71 of file qqmlrefcount_p.h.
Referenced by QQmlXMLHttpRequest::QQmlXMLHttpRequest(), QV4::ResolvedTypeReference::addToHash(), QQmlPropertyCacheCreator< ObjectContainer >::buildMetaObjectsIncrementally(), QQmlIncubator::clear(), QQmlTypePrivate::compositePropertyCache(), QQmlMetaTypeData::propertyCache(), QQmlTypePrivate::resolveCompositeBaseType(), QV4::setupQObjectLookup(), and QV4::setupQObjectMethodLookup().
|
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 204 of file qqmlrefcount_p.h.
References other(), and swap().
|
inline |
Definition at line 85 of file qqmlrefcount_p.h.
Referenced by QQmlProperty::QQmlProperty(), QQmlProperty::QQmlProperty(), QQmlTableInstanceModel::~QQmlTableInstanceModel(), QQmlComponentPrivate::clear(), QQmlIncubatorPrivate::clear(), QQmlData::destroyed(), QQmlDelegateModelItem::destroyObject(), QV4::QObjectWrapper::destroyObject(), QQmlTypeData::done(), QQmlComponentPrivate::fromTypeData(), QQmlDelegateModelPrivate::incubatorStatusChanged(), QQmlContextData::installContext(), QV4::processInlinComponentType(), 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.
Referenced by QV4::ResolvedTypeReference::setCompilationUnit().
|
friend |
Definition at line 83 of file qqmlrefcount_p.h.
|
friend |
Definition at line 82 of file qqmlrefcount_p.h.