TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/common/patterns/Singleton.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Singleton< T >
 Singleton<ClassSingleton> Can transform a class into Singleton (by inheriting this class) More...

Defines

#define MAKE_SINGLETON(Class)
 macro to implement singleton. Use it in derived class declaration
#define MAKE_SINGLETON_WITHCONSTRUCTORS(Class)
 macro to implement singleton. Use it in derived class declaration

Define Documentation

#define MAKE_SINGLETON (   Class)
Value:
public: \
                friend class Singleton < Class >; \
        private: \
                Class() {} \
                ~Class() {}

macro to implement singleton. Use it in derived class declaration

Definition at line 57 of file Singleton.hpp.

#define MAKE_SINGLETON_WITHCONSTRUCTORS (   Class)
Value:
public: \
                friend class Singleton < Class >; \
        private: \
                Class(); \
                ~Class();

macro to implement singleton. Use it in derived class declaration

Definition at line 65 of file Singleton.hpp.