CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Singleton.h
Go to the documentation of this file.
1 #ifndef DDI_Singleton_h
2 #define DDI_Singleton_h
4 
5 namespace DDI {
6  template <class I>
7  class Singleton //: private I
8  {
9  public:
10  typedef I value_type;
11  //typedef I* pointer_type;
12 
13  //~Singleton() { delete instance_; }
14 
15  static value_type & instance();
16 
17  private:
18  Singleton();
19  Singleton& operator=(const Singleton &);
20  //static pointer_type instance_;
21  };
22 }
23 #endif
static value_type & instance()
const std::complex< double > I
Definition: I.h:8
Singleton & operator=(const Singleton &)