CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/DetectorDescription/Base/interface/Singleton.h

Go to the documentation of this file.
00001 #ifndef DDI_Singleton_h
00002 #define DDI_Singleton_h
00003 
00004 namespace DDI {
00005  template <class I> 
00006  class Singleton 
00007  {
00008  public:
00009    typedef I value_type;
00010 
00011    static value_type & instance();
00012    
00013  private:  
00014    Singleton();
00015    Singleton& operator=(const Singleton &);
00016  };
00017 }
00018 #endif