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 <qqmlguard_p.h>
Public Member Functions | |
T * | object () const noexcept |
T * | operator-> () const noexcept |
T & | operator* () const |
operator T* () const noexcept | |
T * | data () const noexcept |
void | setObject (T *obj, QObject *parent) |
bool | isNull () const noexcept |
Additional Inherited Members | |
Protected Types inherited from QQmlGuardImpl | |
using | ObjectDestroyedFn = void(*)(QQmlGuardImpl *) |
Protected Member Functions inherited from QQmlGuardImpl | |
~QQmlGuardImpl () | |
QQmlGuardImpl () | |
QQmlGuardImpl (QObject *) | |
QQmlGuardImpl (const QQmlGuardImpl &) | |
void | addGuard () |
void | remGuard () |
void | setObject (QObject *g) |
bool | isNull () const noexcept |
Protected Attributes inherited from QQmlGuardImpl | |
QObject * | o = nullptr |
QQmlGuardImpl * | next = nullptr |
QQmlGuardImpl ** | prev = nullptr |
ObjectDestroyedFn | objectDestroyed = nullptr |
Definition at line 80 of file qqmlguard_p.h.
|
inlinenoexcept |
Definition at line 90 of file qqmlguard_p.h.
References QQmlStrongJSQObjectReference< T >::object().
|
inlinenoexcept |
Definition at line 44 of file qqmlguard_p.h.
|
inlinenoexcept |
Definition at line 83 of file qqmlguard_p.h.
References QQmlGuardImpl::o.
Referenced by QQmlStrongJSQObjectReference< T >::data(), QQmlStrongJSQObjectReference< QQmlComponent >::operator QQmlComponent *(), QQmlStrongJSQObjectReference< T >::operator*(), QQmlStrongJSQObjectReference< T >::operator->(), and QQmlStrongJSQObjectReference< T >::setObject().
|
inlinenoexcept |
Definition at line 89 of file qqmlguard_p.h.
|
inline |
Definition at line 88 of file qqmlguard_p.h.
References QQmlStrongJSQObjectReference< T >::object().
|
inlinenoexcept |
Definition at line 87 of file qqmlguard_p.h.
References QQmlStrongJSQObjectReference< T >::object().
|
inline |
Definition at line 92 of file qqmlguard_p.h.
References QQmlData::keepAliveDuringGarbageCollection(), QQmlStrongJSQObjectReference< T >::object(), QQml_setParent_noEvent(), and QQmlGuardImpl::setObject().
Referenced by QQuickLoaderPrivate::clear(), QQuickLoaderPrivate::createComponent(), and QQuick3DLoader::setSourceComponent().