|
World Ocean Simulation System (WOSS) library
|
Singleton design pattern template. More...
#include <singleton-definitions.h>


Public Member Functions | |
| ~Singleton ()=default | |
| Singleton ()=delete | |
| Singleton (const Singleton ©)=delete | |
| Singleton (Singleton &&tmp)=delete | |
| Singleton & | operator= (const Singleton ©)=delete |
| Singleton & | operator= (Singleton &&tmp)=delete |
Static Public Member Functions | |
| static T & | instance () |
| static T * | instance_ptr () |
Singleton design pattern template.
A thread-safe singleton template pattern, useful to decouple classes from singleton implementation
|
default |
|
delete |
Disallowed default constructor
|
delete |
Disallowed copy constructor
|
delete |
Disallowed move constructor
|
inlinestatic |
Returns the singleton instance
|
inlinestatic |
|
delete |
Disallowed assignment operator
|
delete |
Disallowed move assignment operator