Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlStrongJSQObjectReference< T > Class Template Referencefinal

#include <qqmlguard_p.h>

Inheritance diagram for QQmlStrongJSQObjectReference< T >:
Collaboration diagram for QQmlStrongJSQObjectReference< T >:

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
QObjecto = nullptr
QQmlGuardImplnext = nullptr
QQmlGuardImpl ** prev = nullptr
ObjectDestroyedFn objectDestroyed = nullptr

Detailed Description

template<typename T>
class QQmlStrongJSQObjectReference< T >

Definition at line 80 of file qqmlguard_p.h.

Member Function Documentation

◆ data()

template<typename T>
T * QQmlStrongJSQObjectReference< T >::data ( ) const
inlinenoexcept

Definition at line 90 of file qqmlguard_p.h.

References object().

Here is the call graph for this function:

◆ isNull()

template<typename T>
bool QQmlGuardImpl::isNull ( ) const
inlinenoexcept

Definition at line 44 of file qqmlguard_p.h.

◆ object()

template<typename T>
T * QQmlStrongJSQObjectReference< T >::object ( ) const
inlinenoexcept

Definition at line 83 of file qqmlguard_p.h.

Referenced by data(), QQmlStrongJSQObjectReference< QQmlComponent >::operator QQmlComponent *(), operator*(), operator->(), and setObject().

Here is the caller graph for this function:

◆ operator T*()

template<typename T>
QQmlStrongJSQObjectReference< T >::operator T* ( ) const
inlinenoexcept

Definition at line 89 of file qqmlguard_p.h.

◆ operator*()

template<typename T>
T & QQmlStrongJSQObjectReference< T >::operator* ( ) const
inline

Definition at line 88 of file qqmlguard_p.h.

References object().

Here is the call graph for this function:

◆ operator->()

template<typename T>
T * QQmlStrongJSQObjectReference< T >::operator-> ( ) const
inlinenoexcept

Definition at line 87 of file qqmlguard_p.h.

References object().

Here is the call graph for this function:

◆ setObject()

template<typename T>
void QQmlStrongJSQObjectReference< T >::setObject ( T * obj,
QObject * parent )
inline

Definition at line 92 of file qqmlguard_p.h.

References object().

Here is the call graph for this function:

The documentation for this class was generated from the following file: