CuteHMI - CuteHMI (CuteHMI.2)
singleton.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_INTERNAL_SINGLETON_HPP
2 #define H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_INTERNAL_SINGLETON_HPP
3 
4 #include "platform.hpp"
5 
6 
7 namespace cutehmi {
8 namespace internal {
9 
10 typedef void(*singletonDestroyCallback)();
11 
12 CUTEHMI_PRIVATE void destroySingletonInstances();
13 
14 CUTEHMI_PRIVATE void storeSingletonDestroyCallback(singletonDestroyCallback callback);
15 
16 CUTEHMI_PRIVATE void removeSingletonDestroyCallback(singletonDestroyCallback callback);
17 
18 }
19 }
20 
21 #endif
22 
23 //(c)C: Copyright © 2019, Michał Policht <michal@policht.pl>. All rights reserved.
24 //(c)C: This file is a part of CuteHMI.
25 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
26 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
27 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>.
cutehmi::internal::removeSingletonDestroyCallback
CUTEHMI_PRIVATE void removeSingletonDestroyCallback(singletonDestroyCallback callback)
Definition: singleton.cpp:77
cutehmi::internal::destroySingletonInstances
CUTEHMI_PRIVATE void destroySingletonInstances()
Definition: singleton.cpp:55
cutehmi::internal::singletonDestroyCallback
void(* singletonDestroyCallback)()
Definition: singleton.hpp:10
cutehmi
Definition: constants.hpp:6
cutehmi::internal::storeSingletonDestroyCallback
CUTEHMI_PRIVATE void storeSingletonDestroyCallback(singletonDestroyCallback callback)
Definition: singleton.cpp:67