Singleton.h
Go to the documentation of this file.
1 #ifndef WIRECELL_SINGLETON
2 #define WIRECELL_SINGLETON
3 
4 namespace WireCell {
5 
6  template <class T>
7  class Singleton
8  {
9  public:
10  static T& Instance() {
11  static T instance;
12  return instance;
13  }
14 
15  private:
18  Singleton(Singleton const&){}
20  };
21 }
22 
23 #endif
const std::string instance
static T & Instance()
Definition: Singleton.h:10
Singleton & operator=(Singleton const &)
Definition: Singleton.h:19
Definition: Main.h:22
Singleton(Singleton const &)
Definition: Singleton.h:18