OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
singleton.h
1 #ifndef SINGLETON_H
2 #define SINGLETON_H
3 
4 #include "index.h"
5 
6 namespace Engine
7 {
8 
12  template < class Manager >
13  class DEPRECATED Singleton
14  {
15  private:
16 
17  static Manager * ptrInstance;
18 
19  Singleton();
20  Singleton( const Singleton & ) = default;
21 
22  public:
23 
24  static Manager * getSingletonPtr(void);
25  };
26 
27 
28  #include "singleton.temp"
29 }
30 
31 #endif // SINGLETON_H
The Singleton - template class.
Definition: singleton.h:13
Definition: element.h:23