Open FFBoard
Open source force feedback firmware
Singleton< T > Class Template Reference

#include <Singleton.h>

Public Member Functions

 Singleton (const Singleton &)=delete
 
Singletonoperator= (const Singleton)=delete
 

Static Public Member Functions

static T * getInstance ()
 
static int16_t getSingletonRefCount ()
 

Protected Member Functions

 Singleton ()
 
 ~Singleton ()
 

Static Protected Attributes

static T * instance_ptr
 
static int16_t singletonRefCount
 

Detailed Description

template<typename T>
class Singleton< T >

Definition at line 18 of file Singleton.h.

Constructor & Destructor Documentation

◆ Singleton() [1/2]

template<typename T >
Singleton< T >::Singleton ( )
inlineprotected

Definition at line 22 of file Singleton.h.

◆ ~Singleton()

template<typename T >
Singleton< T >::~Singleton ( )
inlineprotected

Definition at line 24 of file Singleton.h.

◆ Singleton() [2/2]

template<typename T >
Singleton< T >::Singleton ( const Singleton< T > &  )
delete

Member Function Documentation

◆ getInstance()

template<typename T >
static T * Singleton< T >::getInstance ( )
inlinestatic

Definition at line 32 of file Singleton.h.

◆ getSingletonRefCount()

template<typename T >
static int16_t Singleton< T >::getSingletonRefCount ( )
inlinestatic

Definition at line 42 of file Singleton.h.

◆ operator=()

template<typename T >
Singleton & Singleton< T >::operator= ( const  Singleton)
delete

Member Data Documentation

◆ instance_ptr

template<typename T >
T* Singleton< T >::instance_ptr
staticprotected

Definition at line 21 of file Singleton.h.

◆ singletonRefCount

template<typename T >
int16_t Singleton< T >::singletonRefCount
staticprotected

Definition at line 28 of file Singleton.h.


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