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
QV4::QV4QPointer< T > Struct Template Reference

#include <qv4heap_p.h>

+ Collaboration diagram for QV4::QV4QPointer< T >:

Public Member Functions

void init ()
 
void init (T *o)
 
void destroy ()
 
T * data () const
 
 operator T* () const
 
T * operator-> () const
 
QV4QPointeroperator= (T *o)
 
bool isNull () const noexcept
 
bool isValid () const noexcept
 

Detailed Description

template<class T>
struct QV4::QV4QPointer< T >

Definition at line 168 of file qv4heap_p.h.

Member Function Documentation

◆ data()

template<class T >
T * QV4::QV4QPointer< T >::data ( ) const
inline

Definition at line 193 of file qv4heap_p.h.

References QBasicAtomicInteger< T >::loadRelaxed(), nullptr, and QtSharedPointer::ExternalRefCountData::strongref.

Referenced by QV4::Heap::QmlSignalHandler::object(), QV4::Heap::QmlListWrapper::object(), QV4::QV4QPointer< QObject >::operator QObject *(), and QV4::QV4QPointer< T >::operator->().

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

◆ destroy()

template<class T >
void QV4::QV4QPointer< T >::destroy ( )
inline

Definition at line 185 of file qv4heap_p.h.

References QBasicAtomicInteger< T >::deref(), and QtSharedPointer::ExternalRefCountData::weakref.

Referenced by QV4::Heap::QmlSignalHandler::destroy(), and QV4::QV4QPointer< T >::operator=().

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

◆ init() [1/2]

template<class T >
void QV4::QV4QPointer< T >::init ( )
inline

Definition at line 169 of file qv4heap_p.h.

Referenced by QV4::Heap::QmlListWrapper::init(), and QV4::QV4QPointer< T >::operator=().

+ Here is the caller graph for this function:

◆ init() [2/2]

template<class T >
void QV4::QV4QPointer< T >::init ( T * o)
inline

Definition at line 175 of file qv4heap_p.h.

References QtSharedPointer::ExternalRefCountData::getAndRef(), o, and Q_ASSERT.

+ Here is the call graph for this function:

◆ isNull()

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

Definition at line 206 of file qv4heap_p.h.

References QV4::QV4QPointer< T >::isValid(), QBasicAtomicInteger< T >::loadRelaxed(), and QtSharedPointer::ExternalRefCountData::strongref.

+ Here is the call graph for this function:

◆ isValid()

template<class T >
bool QV4::QV4QPointer< T >::isValid ( ) const
inlinenoexcept

Definition at line 211 of file qv4heap_p.h.

Referenced by QV4::QV4QPointer< T >::isNull().

+ Here is the caller graph for this function:

◆ operator T*()

template<class T >
QV4::QV4QPointer< T >::operator T* ( ) const
inline

Definition at line 196 of file qv4heap_p.h.

◆ operator->()

template<class T >
T * QV4::QV4QPointer< T >::operator-> ( ) const
inline

Definition at line 197 of file qv4heap_p.h.

References QV4::QV4QPointer< T >::data().

+ Here is the call graph for this function:

◆ operator=()

template<class T >
QV4QPointer & QV4::QV4QPointer< T >::operator= ( T * o)
inline

Definition at line 198 of file qv4heap_p.h.

References QV4::QV4QPointer< T >::destroy(), QV4::QV4QPointer< T >::init(), and o.

+ Here is the call graph for this function:

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