Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QtGlobalStatic::Holder< QGS > Union Template Reference

#include <qglobalstatic.h>

+ Collaboration diagram for QtGlobalStatic::Holder< QGS >:

Public Types

using Type = typename QGS::QGS_Type
 
using PlainType = std::remove_cv_t< Type >
 

Public Member Functions

 Holder () noexcept(ConstructionIsNoexcept)
 
 ~Holder ()
 
PlainTypepointer () noexcept
 

Public Attributes

PlainType storage
 

Static Public Attributes

static constexpr bool ConstructionIsNoexcept = noexcept(QGS::innerFunction(nullptr))
 
static Q_CONSTINIT QBasicAtomicInteger< qint8guard = { QtGlobalStatic::Uninitialized }
 

Detailed Description

template<typename QGS>
union QtGlobalStatic::Holder< QGS >

Definition at line 23 of file qglobalstatic.h.

Member Typedef Documentation

◆ PlainType

template<typename QGS >
using QtGlobalStatic::Holder< QGS >::PlainType = std::remove_cv_t<Type>

Definition at line 26 of file qglobalstatic.h.

◆ Type

template<typename QGS >
using QtGlobalStatic::Holder< QGS >::Type = typename QGS::QGS_Type

Definition at line 25 of file qglobalstatic.h.

Constructor & Destructor Documentation

◆ Holder()

template<typename QGS >
QtGlobalStatic::Holder< QGS >::Holder ( )
inlinenoexcept

Definition at line 34 of file qglobalstatic.h.

References QtGlobalStatic::Holder< QGS >::guard, QtGlobalStatic::Initialized, QtGlobalStatic::Holder< QGS >::pointer(), and QBasicAtomicInteger< T >::storeRelaxed().

+ Here is the call graph for this function:

◆ ~Holder()

template<typename QGS >
QtGlobalStatic::Holder< QGS >::~Holder ( )
inline

Definition at line 40 of file qglobalstatic.h.

References QtGlobalStatic::Destroyed, QtGlobalStatic::Holder< QGS >::guard, QtGlobalStatic::Holder< QGS >::pointer(), and QBasicAtomicInteger< T >::storeRelaxed().

+ Here is the call graph for this function:

Member Function Documentation

◆ pointer()

template<typename QGS >
PlainType * QtGlobalStatic::Holder< QGS >::pointer ( )
inlinenoexcept

Definition at line 47 of file qglobalstatic.h.

References QtGlobalStatic::Holder< QGS >::storage.

Referenced by QtGlobalStatic::Holder< QGS >::Holder(), and QtGlobalStatic::Holder< QGS >::~Holder().

+ Here is the caller graph for this function:

Member Data Documentation

◆ ConstructionIsNoexcept

template<typename QGS >
constexpr bool QtGlobalStatic::Holder< QGS >::ConstructionIsNoexcept = noexcept(QGS::innerFunction(nullptr))
staticconstexpr

Definition at line 28 of file qglobalstatic.h.

◆ guard

template<typename QGS >
Q_CONSTINIT QBasicAtomicInteger<qint8> QtGlobalStatic::Holder< QGS >::guard = { QtGlobalStatic::Uninitialized }
inlinestatic

◆ storage

template<typename QGS >
PlainType QtGlobalStatic::Holder< QGS >::storage

Definition at line 32 of file qglobalstatic.h.

Referenced by QtGlobalStatic::Holder< QGS >::pointer().


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