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::QObjectThreadSafeRef Class Reference

#include <qcore_ohos_p.h>

Inheritance diagram for QtOhos::QObjectThreadSafeRef:
Collaboration diagram for QtOhos::QObjectThreadSafeRef:

Public Types

using ObjectRefsMap = std::map<QObject *, std::shared_ptr<QObjectRef>>

Public Member Functions

 QObjectThreadSafeRef ()
 QObjectThreadSafeRef (QPointer< QObject > obj)
 QObjectThreadSafeRef (const QObjectThreadSafeRef &other)
QObjectThreadSafeRefoperator= (const QObjectThreadSafeRef &other)
bool operator== (const QObjectThreadSafeRef &other) const
bool operator!= (const QObjectThreadSafeRef &other) const
std::string refName () const
QPointer< QObjectdata () const
void visitInQtThreadIfAlive (std::function< void(QObject &)> visitFunc) const

Detailed Description

Definition at line 157 of file qcore_ohos_p.h.

Member Typedef Documentation

◆ ObjectRefsMap

using QtOhos::QObjectThreadSafeRef::ObjectRefsMap = std::map<QObject *, std::shared_ptr<QObjectRef>>

Definition at line 191 of file qcore_ohos_p.h.

Constructor & Destructor Documentation

◆ QObjectThreadSafeRef() [1/3]

QtOhos::QObjectThreadSafeRef::QObjectThreadSafeRef ( )

Definition at line 163 of file qcore_ohos.cpp.

◆ QObjectThreadSafeRef() [2/3]

QtOhos::QObjectThreadSafeRef::QObjectThreadSafeRef ( QPointer< QObject > obj)

Definition at line 168 of file qcore_ohos.cpp.

◆ QObjectThreadSafeRef() [3/3]

QtOhos::QObjectThreadSafeRef::QObjectThreadSafeRef ( const QObjectThreadSafeRef & other)
default

Member Function Documentation

◆ data()

QPointer< QObject > QtOhos::QObjectThreadSafeRef::data ( ) const

Definition at line 224 of file qcore_ohos.cpp.

◆ operator!=()

bool QtOhos::QObjectThreadSafeRef::operator!= ( const QObjectThreadSafeRef & other) const

Definition at line 214 of file qcore_ohos.cpp.

◆ operator=()

QObjectThreadSafeRef & QtOhos::QObjectThreadSafeRef::operator= ( const QObjectThreadSafeRef & other)
default

◆ operator==()

bool QtOhos::QObjectThreadSafeRef::operator== ( const QObjectThreadSafeRef & other) const

Definition at line 209 of file qcore_ohos.cpp.

◆ refName()

std::string QtOhos::QObjectThreadSafeRef::refName ( ) const

Definition at line 219 of file qcore_ohos.cpp.

◆ visitInQtThreadIfAlive()

void QtOhos::QObjectThreadSafeRef::visitInQtThreadIfAlive ( std::function< void(QObject &)> visitFunc) const

Definition at line 238 of file qcore_ohos.cpp.


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