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
QGlobalStatic< Holder > Struct Template Reference

#include <qglobalstatic.h>

+ Collaboration diagram for QGlobalStatic< Holder >:

Public Types

using Type = typename Holder::Type
 

Public Member Functions

bool isDestroyed () const noexcept
 
bool exists () const noexcept
 
 operator Type * ()
 
Typeoperator() ()
 
Typeoperator-> ()
 
Typeoperator* ()
 

Static Protected Member Functions

static Typeinstance () noexcept(Holder::ConstructionIsNoexcept)
 
static QtGlobalStatic::GuardValues guardValue () noexcept
 

Detailed Description

template<typename Holder>
struct QGlobalStatic< Holder >

Definition at line 66 of file qglobalstatic.h.

Member Typedef Documentation

◆ Type

template<typename Holder >
using QGlobalStatic< Holder >::Type = typename Holder::Type

Definition at line 68 of file qglobalstatic.h.

Member Function Documentation

◆ exists()

template<typename Holder >
bool QGlobalStatic< Holder >::exists ( ) const
inlinenoexcept

Definition at line 71 of file qglobalstatic.h.

References QGlobalStatic< Holder >::guardValue(), and QtGlobalStatic::Initialized.

+ Here is the call graph for this function:

◆ guardValue()

template<typename Holder >
static QtGlobalStatic::GuardValues QGlobalStatic< Holder >::guardValue ( )
inlinestaticprotectednoexcept

Definition at line 103 of file qglobalstatic.h.

Referenced by QGlobalStatic< Holder >::exists(), and QGlobalStatic< Holder >::isDestroyed().

+ Here is the caller graph for this function:

◆ instance()

template<typename Holder >
static Type * QGlobalStatic< Holder >::instance ( )
inlinestaticprotectednoexcept

Definition at line 98 of file qglobalstatic.h.

Referenced by QGlobalStatic< Holder >::operator Type *(), QGlobalStatic< Holder >::operator()(), QGlobalStatic< Holder >::operator*(), and QGlobalStatic< Holder >::operator->().

+ Here is the caller graph for this function:

◆ isDestroyed()

template<typename Holder >
bool QGlobalStatic< Holder >::isDestroyed ( ) const
inlinenoexcept

Definition at line 70 of file qglobalstatic.h.

References QtGlobalStatic::Destroyed, and QGlobalStatic< Holder >::guardValue().

Referenced by QGlobalStatic< Holder >::operator Type *(), QGlobalStatic< Holder >::operator()(), QGlobalStatic< Holder >::operator*(), and QGlobalStatic< Holder >::operator->().

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

◆ operator Type *()

template<typename Holder >
QGlobalStatic< Holder >::operator Type * ( )
inline

Definition at line 72 of file qglobalstatic.h.

References QGlobalStatic< Holder >::instance(), and QGlobalStatic< Holder >::isDestroyed().

+ Here is the call graph for this function:

◆ operator()()

template<typename Holder >
Type * QGlobalStatic< Holder >::operator() ( )
inline

Definition at line 78 of file qglobalstatic.h.

References QGlobalStatic< Holder >::instance(), and QGlobalStatic< Holder >::isDestroyed().

+ Here is the call graph for this function:

◆ operator*()

template<typename Holder >
Type & QGlobalStatic< Holder >::operator* ( )
inline

Definition at line 90 of file qglobalstatic.h.

References QGlobalStatic< Holder >::instance(), QGlobalStatic< Holder >::isDestroyed(), Q_ASSERT_X, and Q_FUNC_INFO.

+ Here is the call graph for this function:

◆ operator->()

template<typename Holder >
Type * QGlobalStatic< Holder >::operator-> ( )
inline

Definition at line 84 of file qglobalstatic.h.

References QGlobalStatic< Holder >::instance(), QGlobalStatic< Holder >::isDestroyed(), Q_ASSERT_X, and Q_FUNC_INFO.

+ Here is the call graph for this function:

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