Go to the documentation of this file. 39 #ifndef __OPENFLUID_UTILS_SINGLETONMACROS_HPP__ 40 #define __OPENFLUID_UTILS_SINGLETONMACROS_HPP__ 78 #define OPENFLUID_SINGLETON_DEFINITION(T) \ 80 T(T const&) = delete; \ 81 void operator=(T const&) = delete; \ 84 static T* mp_Instance; \ 87 static T* instance() \ 90 mp_Instance = new T(); \ 98 mp_Instance = nullptr;\ 111 #define OPENFLUID_SINGLETON_INITIALIZATION(T) \ 112 T* T::mp_Instance = nullptr;