|
CuteHMI - CuteHMI (CuteHMI.2)
|
1 #ifndef H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_SINGLETON_HPP
2 #define H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_SINGLETON_HPP
4 #include "NonCopyable.hpp"
5 #include "NonMovable.hpp"
6 #include "internal/common.hpp"
7 #include "internal/singleton.hpp"
119 static C * instancePtr = InstancePtr().get();
133 InstancePtr().reset();
CUTEHMI_PRIVATE void removeSingletonDestroyCallback(singletonDestroyCallback callback)
Definition: singleton.cpp:77
virtual ~Singleton()
Destructor.
Definition: Singleton.hpp:106
CUTEHMI_API void destroySingletonInstances()
Destroy singleton instances.
Definition: Singleton.cpp:5
Non-movable object.
Definition: NonMovable.hpp:9
Definition: constants.hpp:6
CUTEHMI_PRIVATE void storeSingletonDestroyCallback(singletonDestroyCallback callback)
Definition: singleton.cpp:67
Non-copyable object.
Definition: NonCopyable.hpp:9
static void Destroy()
Destroy instance.
Definition: Singleton.hpp:125
static std::unique_ptr< C > & InstancePtr()
Get instance pointer.
Definition: Singleton.hpp:137
Singleton()
Default constructor.
Definition: Singleton.hpp:100
static C & Instance()
Get instance.
Definition: Singleton.hpp:112
Singleton template.
Definition: Singleton.hpp:25