|
Thrill
0.1
|
Definition at line 27 of file singleton.hpp.
#include <singleton.hpp>
Public Member Functions | |
| Singleton ()=default | |
| Singleton (const Singleton &)=delete | |
| non-copyable: delete copy-constructor More... | |
| Singleton (Singleton &&)=default | |
| move-constructor: default More... | |
| Singleton & | operator= (const Singleton &)=delete |
| non-copyable: delete assignment operator More... | |
| Singleton & | operator= (Singleton &&)=default |
| move-assignment operator: default More... | |
Static Public Member Functions | |
| static instance_pointer | GetInstance () |
Private Types | |
| using | instance_pointer = instance_type * |
| using | instance_type = Instance |
| using | volatile_instance_pointer = volatile instance_pointer |
Static Private Member Functions | |
| static instance_pointer | CreateInstance () |
| static void | DestroyInstance () |
Static Private Attributes | |
| static volatile_instance_pointer | instance_ = nullptr |
|
private |
Definition at line 30 of file singleton.hpp.
|
private |
Definition at line 29 of file singleton.hpp.
|
private |
Definition at line 31 of file singleton.hpp.
|
default |
non-copyable: delete copy-constructor
|
staticprivate |
Definition at line 60 of file singleton.hpp.
References Singleton< Instance, destroy_on_exit >::DestroyInstance(), and Singleton< Instance, destroy_on_exit >::instance_.
Referenced by Singleton< Instance, destroy_on_exit >::GetInstance().
|
staticprivate |
Definition at line 72 of file singleton.hpp.
References Singleton< Instance, destroy_on_exit >::instance_.
Referenced by Singleton< Instance, destroy_on_exit >::CreateInstance().
|
inlinestatic |
Definition at line 50 of file singleton.hpp.
References Singleton< Instance, destroy_on_exit >::CreateInstance(), and Singleton< Instance, destroy_on_exit >::instance_.
non-copyable: delete assignment operator
move-assignment operator: default
|
staticprivate |
Definition at line 33 of file singleton.hpp.
Referenced by Singleton< Instance, destroy_on_exit >::CreateInstance(), Singleton< Instance, destroy_on_exit >::DestroyInstance(), and Singleton< Instance, destroy_on_exit >::GetInstance().