CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DetectorDescription/Base/interface/Singleton.h

Go to the documentation of this file.
00001 #ifndef DDI_Singleton_h
00002 #define DDI_Singleton_h
00003 #include "DetectorDescription/Base/interface/Ptr.h"
00004 
00005 namespace DDI {
00006  template <class I> 
00007  class Singleton //: private I
00008  {
00009  public:
00010    typedef I value_type;
00011    //typedef I* pointer_type;
00012    
00013    //~Singleton() { delete instance_; }
00014    
00015    static value_type & instance();
00016    
00017  private:  
00018    Singleton();
00019    Singleton& operator=(const Singleton &);
00020    //static pointer_type instance_;
00021  };
00022 }
00023 #endif