Go to the documentation of this file. 39 #ifndef __OPENFLUID_UTILS_SINGLETONMACROS_HPP__ 40 #define __OPENFLUID_UTILS_SINGLETONMACROS_HPP__ 55 #define OPENFLUID_SINGLETON_DEFINITION(T) \ 57 T(T const&) = delete; \ 58 void operator=(T const&) = delete; \ 61 static T* mp_Instance; \ 64 static T* instance() \ 67 mp_Instance = new T(); \ 75 mp_Instance = nullptr;\ 88 #define OPENFLUID_SINGLETON_INITIALIZATION(T) \ 89 T* T::mp_Instance = nullptr;