CMS 3D CMS Logo

Singleton.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_CORE_DDI_SINGLETON_H
2 #define DETECTOR_DESCRIPTION_CORE_DDI_SINGLETON_H
3 
4 namespace DDI {
5  template <class I>
6  class Singleton
7  {
8  public:
9  typedef I value_type;
10  virtual ~Singleton() = default;
11  static value_type & instance();
12 
13  Singleton(void) = delete;
14  Singleton(const Singleton&) = delete;
15  Singleton& operator=(const Singleton &) = delete;
16  };
17 }
18 
19 #endif
virtual ~Singleton()=default
Singleton & operator=(const Singleton &)=delete
static value_type & instance()
const std::complex< double > I
Definition: I.h:8
Singleton(void)=delete