TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
TTKSingleton< T > Class Template Reference

The class of the singleton base. More...

#include <ttksingleton.h>

Static Public Member Functions

static TcreateInstance ()
 

Private Member Functions

 TTKSingleton ()=default
 
 ~TTKSingleton ()=default
 

Static Private Attributes

static QMutex m_mutex
 
                                         //

Singleton Implementation // // More...

 
static QScopedPointer< Tm_instance
 

Detailed Description

template<typename T>
class TTKSingleton< T >

The class of the singleton base.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 30 of file ttksingleton.h.

Constructor & Destructor Documentation

template<typename T >
TTKSingleton< T >::TTKSingleton ( )
privatedefault

Object constructor.

template<typename T >
TTKSingleton< T >::~TTKSingleton ( )
privatedefault

Object destructor.

Member Function Documentation

template<typename T >
T * TTKSingleton< T >::createInstance ( )
static

Member Data Documentation

template<typename T >
QScopedPointer< T > TTKSingleton< T >::m_instance
staticprivate

Definition at line 49 of file ttksingleton.h.

template<typename T >
QMutex TTKSingleton< T >::m_mutex
staticprivate

                                         //

Singleton Implementation // //

Definition at line 48 of file ttksingleton.h.


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