Go to the documentation of this file. 40 #ifndef __OPENFLUID_UTILS_SINGLETONMACROS_HPP__ 41 #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;\ 110 #define OPENFLUID_SINGLETON_INITIALIZATION(T) \ 111 T* T::mp_Instance = nullptr;