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
QtOhos::QThreadSafeRef< T > Class Template Reference

#include <qcore_ohos_p.h>

Inheritance diagram for QtOhos::QThreadSafeRef< T >:
Collaboration diagram for QtOhos::QThreadSafeRef< T >:

Public Member Functions

 QThreadSafeRef ()
 QThreadSafeRef (QPointer< T > obj)
 QThreadSafeRef (const QThreadSafeRef< T > &other)
QThreadSafeRefoperator= (const QThreadSafeRef< T > &other)
QObjectThreadSafeRef toQObjectThreadSafeRef () const
std::string refName () const
QPointer< T > data () const
void visitInQtThreadIfAlive (std::function< void(T &)> visitFunc) const

Detailed Description

template<typename T>
class QtOhos::QThreadSafeRef< T >

Definition at line 195 of file qcore_ohos_p.h.

Constructor & Destructor Documentation

◆ QThreadSafeRef() [1/3]

template<typename T>
QtOhos::QThreadSafeRef< T >::QThreadSafeRef ( )
default

◆ QThreadSafeRef() [2/3]

template<typename T>
QtOhos::QThreadSafeRef< T >::QThreadSafeRef ( QPointer< T > obj)

Definition at line 275 of file qcore_ohos_p.h.

◆ QThreadSafeRef() [3/3]

template<typename T>
QtOhos::QThreadSafeRef< T >::QThreadSafeRef ( const QThreadSafeRef< T > & other)
default

Member Function Documentation

◆ data()

template<typename T>
QPointer< T > QtOhos::QThreadSafeRef< T >::data ( ) const

Definition at line 299 of file qcore_ohos_p.h.

◆ operator=()

template<typename T>
QThreadSafeRef< T > & QtOhos::QThreadSafeRef< T >::operator= ( const QThreadSafeRef< T > & other)
default

◆ refName()

template<typename T>
std::string QtOhos::QThreadSafeRef< T >::refName ( ) const

Definition at line 287 of file qcore_ohos_p.h.

◆ toQObjectThreadSafeRef()

template<typename T>
QObjectThreadSafeRef QtOhos::QThreadSafeRef< T >::toQObjectThreadSafeRef ( ) const

Definition at line 293 of file qcore_ohos_p.h.

◆ visitInQtThreadIfAlive()

template<typename T>
void QtOhos::QThreadSafeRef< T >::visitInQtThreadIfAlive ( std::function< void(T &)> visitFunc) const

Definition at line 307 of file qcore_ohos_p.h.


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