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
QQmlGuard< T > Class Template Reference

#include <qqmlguard_p.h>

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

Public Member Functions

Q_NODISCARD_CTOR QQmlGuard ()
Q_NODISCARD_CTOR QQmlGuard (ObjectDestroyedFn objectDestroyed, T *)
Q_NODISCARD_CTOR QQmlGuard (T *)
Q_NODISCARD_CTOR QQmlGuard (const QQmlGuard< T > &)
QQmlGuard< T > & operator= (const QQmlGuard< T > &o)
QQmlGuard< T > & operator= (T *)
T * object () const noexcept
void setObject (T *g)
T * operator-> () const noexcept
T & operator* () const
 operator T* () const noexcept
T * data () const noexcept
bool isNull () const noexcept

Friends

class QQmlData

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<class T>
class QQmlGuard< T >

Definition at line 49 of file qqmlguard_p.h.

Constructor & Destructor Documentation

◆ QQmlGuard() [1/4]

template<class T>
QQmlGuard< T >::QQmlGuard ( )
inline

Definition at line 180 of file qqmlguard_p.h.

◆ QQmlGuard() [2/4]

template<class T>
QQmlGuard< T >::QQmlGuard ( ObjectDestroyedFn objectDestroyed,
T * obj )
inline

Definition at line 185 of file qqmlguard_p.h.

◆ QQmlGuard() [3/4]

template<class T>
QQmlGuard< T >::QQmlGuard ( T * g)
inline

Definition at line 192 of file qqmlguard_p.h.

◆ QQmlGuard() [4/4]

template<class T>
QQmlGuard< T >::QQmlGuard ( const QQmlGuard< T > & g)
inline

Definition at line 198 of file qqmlguard_p.h.

Member Function Documentation

◆ data()

template<class T>
T * QQmlGuard< T >::data ( ) const
inlinenoexcept

Definition at line 69 of file qqmlguard_p.h.

References object().

Here is the call graph for this function:

◆ isNull()

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

Definition at line 44 of file qqmlguard_p.h.

◆ object()

template<class T>
T * QQmlGuard< T >::object ( ) const
inlinenoexcept

Definition at line 61 of file qqmlguard_p.h.

Referenced by data(), QQmlGuard< QObject >::operator QObject *(), operator*(), and operator->().

Here is the caller graph for this function:

◆ operator T*()

template<class T>
QQmlGuard< T >::operator T* ( ) const
inlinenoexcept

Definition at line 68 of file qqmlguard_p.h.

◆ operator*()

template<class T>
T & QQmlGuard< T >::operator* ( ) const
inline

Definition at line 67 of file qqmlguard_p.h.

References object().

Here is the call graph for this function:

◆ operator->()

template<class T>
T * QQmlGuard< T >::operator-> ( ) const
inlinenoexcept

Definition at line 66 of file qqmlguard_p.h.

References object().

Here is the call graph for this function:

◆ operator=() [1/2]

template<class T>
QQmlGuard< T > & QQmlGuard< T >::operator= ( const QQmlGuard< T > & o)
inline

Definition at line 204 of file qqmlguard_p.h.

◆ operator=() [2/2]

template<class T>
QQmlGuard< T > & QQmlGuard< T >::operator= ( T * g)
inline

Definition at line 212 of file qqmlguard_p.h.

◆ setObject()

template<class T>
void QQmlGuard< T >::setObject ( T * g)
inline

Definition at line 62 of file qqmlguard_p.h.

◆ QQmlData

template<class T>
friend class QQmlData
friend

Definition at line 51 of file qqmlguard_p.h.


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