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>.
Loading...
Searching...
No Matches
QQmlGuardImpl Class Reference

#include <qqmlguard_p.h>

+ Inheritance diagram for QQmlGuardImpl:
+ Collaboration diagram for QQmlGuardImpl:

Public Types

using ObjectDestroyedFn = void(*)(QQmlGuardImpl *)
 

Public Member Functions

 QQmlGuardImpl ()
 
 QQmlGuardImpl (QObject *)
 
 QQmlGuardImpl (const QQmlGuardImpl &)
 
void addGuard ()
 
void remGuard ()
 
void setObject (QObject *g)
 
bool isNull () const noexcept
 

Public Attributes

QObjecto = nullptr
 
QQmlGuardImplnext = nullptr
 
QQmlGuardImpl ** prev = nullptr
 
ObjectDestroyedFn objectDestroyed = nullptr
 

Protected Member Functions

 ~QQmlGuardImpl ()
 

Detailed Description

Definition at line 23 of file qqmlguard_p.h.

Member Typedef Documentation

◆ ObjectDestroyedFn

Definition at line 26 of file qqmlguard_p.h.

Constructor & Destructor Documentation

◆ QQmlGuardImpl() [1/3]

QT_END_NAMESPACE QT_BEGIN_NAMESPACE QQmlGuardImpl::QQmlGuardImpl ( )
inline

Definition at line 126 of file qqmlguard_p.h.

◆ QQmlGuardImpl() [2/3]

QQmlGuardImpl::QQmlGuardImpl ( QObject * g)
inline

Definition at line 130 of file qqmlguard_p.h.

References addGuard(), and o.

+ Here is the call graph for this function:

◆ QQmlGuardImpl() [3/3]

QQmlGuardImpl::QQmlGuardImpl ( const QQmlGuardImpl & g)
inline

Definition at line 143 of file qqmlguard_p.h.

References addGuard(), and o.

+ Here is the call graph for this function:

◆ ~QQmlGuardImpl()

QQmlGuardImpl::~QQmlGuardImpl ( )
inlineprotected

Definition at line 149 of file qqmlguard_p.h.

References o, prev, and remGuard().

+ Here is the call graph for this function:

Member Function Documentation

◆ addGuard()

void QQmlGuardImpl::addGuard ( )
inline

Definition at line 155 of file qqmlguard_p.h.

References QObjectPrivate::get(), QQmlData::get(), next, o, prev, and Q_ASSERT.

Referenced by QQmlGuardImpl(), and QQmlGuardImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isNull()

bool QQmlGuardImpl::isNull ( ) const
inlinenoexcept

Definition at line 44 of file qqmlguard_p.h.

References o.

◆ remGuard()

void QQmlGuardImpl::remGuard ( )
inline

Definition at line 169 of file qqmlguard_p.h.

References next, prev, and Q_ASSERT.

Referenced by ~QQmlGuardImpl().

+ Here is the caller graph for this function:

◆ setObject()

void QQmlGuardImpl::setObject ( QObject * g)
inline

Definition at line 222 of file qqmlguard_p.h.

References o.

Referenced by QQmlData::destroyed(), QQmlGuard< T >::setObject(), and QQmlStrongJSQObjectReference< T >::setObject().

+ Here is the caller graph for this function:

Member Data Documentation

◆ next

QQmlGuardImpl* QQmlGuardImpl::next = nullptr

Definition at line 36 of file qqmlguard_p.h.

Referenced by addGuard(), and remGuard().

◆ o

◆ objectDestroyed

ObjectDestroyedFn QQmlGuardImpl::objectDestroyed = nullptr

Definition at line 38 of file qqmlguard_p.h.

Referenced by QQmlGuard< T >::QQmlGuard().

◆ prev

QQmlGuardImpl** QQmlGuardImpl::prev = nullptr

Definition at line 37 of file qqmlguard_p.h.

Referenced by ~QQmlGuardImpl(), addGuard(), and remGuard().


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