![]() |
Qt 6.x
The Qt SDK
|
#include <qapplicationstatic.h>
Collaboration diagram for QtGlobalStatic::ApplicationHolder< QAS >:Public Types | |
| using | Type = typename QAS::QAS_Type |
| using | PlainType = std::remove_cv_t< Type > |
Public Member Functions | |
| ApplicationHolder ()=default | |
| ~ApplicationHolder () | |
| PlainType * | pointer () noexcept(MutexLockIsNoexcept &&ConstructionIsNoexcept) |
Static Public Member Functions | |
| static PlainType * | realPointer () |
| static void | reset () |
Static Public Attributes | ||
| struct { | ||
| unsigned char data [sizeof(Type)] | ||
| } | storage = {} | |
| static Q_CONSTINIT QBasicAtomicInteger< qint8 > | guard = { QtGlobalStatic::Uninitialized } | |
| static Q_CONSTINIT QBasicMutex | mutex {} | |
| static constexpr bool | MutexLockIsNoexcept = noexcept(mutex.lock()) | |
| static constexpr bool | ConstructionIsNoexcept = noexcept(QAS::innerFunction(nullptr)) | |
Definition at line 17 of file qapplicationstatic.h.
| using QtGlobalStatic::ApplicationHolder< QAS >::PlainType = std::remove_cv_t<Type> |
Definition at line 20 of file qapplicationstatic.h.
| using QtGlobalStatic::ApplicationHolder< QAS >::Type = typename QAS::QAS_Type |
Definition at line 19 of file qapplicationstatic.h.
|
default |
|
inline |
Definition at line 31 of file qapplicationstatic.h.
References QtGlobalStatic::Destroyed, QtGlobalStatic::ApplicationHolder< QAS >::guard, QtGlobalStatic::Initialized, QBasicAtomicInteger< T >::loadAcquire(), QtGlobalStatic::ApplicationHolder< QAS >::realPointer(), and QBasicAtomicInteger< T >::storeRelease().
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 46 of file qapplicationstatic.h.
References app, QObject::connect(), QObject::destroyed(), Qt::DirectConnection, QtGlobalStatic::ApplicationHolder< QAS >::guard, QtGlobalStatic::Initialized, QCoreApplication::instance(), QBasicAtomicInteger< T >::loadAcquire(), QBasicAtomicInteger< T >::loadRelaxed(), QtGlobalStatic::ApplicationHolder< QAS >::mutex, QtGlobalStatic::ApplicationHolder< QAS >::realPointer(), QtGlobalStatic::ApplicationHolder< QAS >::storage, QBasicAtomicInteger< T >::storeRelease(), and QtGlobalStatic::Uninitialized.
Here is the call graph for this function:
|
inlinestatic |
Definition at line 40 of file qapplicationstatic.h.
References QtGlobalStatic::ApplicationHolder< QAS >::storage.
Referenced by QtGlobalStatic::ApplicationHolder< QAS >::~ApplicationHolder(), QtGlobalStatic::ApplicationHolder< QAS >::pointer(), and QtGlobalStatic::ApplicationHolder< QAS >::reset().
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 60 of file qapplicationstatic.h.
References QtGlobalStatic::ApplicationHolder< QAS >::guard, QtGlobalStatic::ApplicationHolder< QAS >::mutex, QtGlobalStatic::ApplicationHolder< QAS >::realPointer(), QBasicAtomicInteger< T >::storeRelaxed(), and QtGlobalStatic::Uninitialized.
Here is the call graph for this function:
|
staticconstexpr |
Definition at line 27 of file qapplicationstatic.h.
| unsigned char QtGlobalStatic::ApplicationHolder< QAS >::data[sizeof(Type)] |
Definition at line 22 of file qapplicationstatic.h.
|
inlinestatic |
Definition at line 23 of file qapplicationstatic.h.
Referenced by QtGlobalStatic::ApplicationHolder< QAS >::~ApplicationHolder(), QtGlobalStatic::ApplicationHolder< QAS >::pointer(), and QtGlobalStatic::ApplicationHolder< QAS >::reset().
|
inlinestatic |
Definition at line 24 of file qapplicationstatic.h.
Referenced by QtGlobalStatic::ApplicationHolder< QAS >::pointer(), and QtGlobalStatic::ApplicationHolder< QAS >::reset().
|
staticconstexpr |
Definition at line 26 of file qapplicationstatic.h.
| Q_CONSTINIT struct { ... } QtGlobalStatic::ApplicationHolder< QAS >::storage |