LBIBCell
|
#include <Singleton.hpp>
Public Member Functions | |
Singleton ()=delete | |
Singleton (const Singleton &S)=delete | |
Singleton & | operator= (const Singleton &S)=delete |
~Singleton () | |
Static Public Member Functions | |
static T & | instance () |
Singleton holder template class. Template class to create singletons. A singleton instance of class MyType is created and accessed using
Definition at line 38 of file Singleton.hpp.
|
delete |
Deleted constructor to disallow explicit construction. Is not defined.
|
delete |
Deleted copy constructor to disallow explicit copying. Is not defined.
S | A singleton object. |
UtilLib::Singleton< T >::~Singleton | ( | ) |
Destructor.
Definition at line 103 of file Singleton.hpp.
|
static |
Return a reference to the only instance of Singleton<T>
.
Returns the unique instance of class T. If it was already deleted an exception is thrown. If the class T was never used before a new instance is generated.
Definition at line 90 of file Singleton.hpp.
|
delete |
Deleted assignment operator to disallow explicit assignment.
S | A singleton object. |