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
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 67 of file qglobalstatic.h.

Member Typedef Documentation

◆ Type

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

Definition at line 69 of file qglobalstatic.h.

Member Function Documentation

◆ exists()

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

Definition at line 72 of file qglobalstatic.h.

References 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 104 of file qglobalstatic.h.

Referenced by exists(), and isDestroyed().

+ Here is the caller graph for this function:

◆ instance()

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

Definition at line 99 of file qglobalstatic.h.

Referenced by operator Type *(), operator()(), operator*(), and operator->().

+ Here is the caller graph for this function:

◆ isDestroyed()

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

Definition at line 71 of file qglobalstatic.h.

References QtGlobalStatic::Destroyed, and guardValue().

Referenced by operator Type *(), and 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 73 of file qglobalstatic.h.

References instance(), and isDestroyed().

+ Here is the call graph for this function:

◆ operator()()

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

Definition at line 79 of file qglobalstatic.h.

References instance(), and isDestroyed().

+ Here is the call graph for this function:

◆ operator*()

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

Definition at line 91 of file qglobalstatic.h.

References instance().

+ Here is the call graph for this function:

◆ operator->()

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

Definition at line 85 of file qglobalstatic.h.

References instance().

+ Here is the call graph for this function:

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