Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
util
inc
WireCellUtil
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
:
16
Singleton
(){}
17
~Singleton
(){}
18
Singleton
(
Singleton
const
&){}
19
Singleton
&
operator=
(
Singleton
const
&){}
20
};
21
}
22
23
#endif
WireCell::Singleton::~Singleton
~Singleton()
Definition:
Singleton.h:17
instance
const std::string instance
Definition:
BlipMaker_module.cc:27
ValidateOpDetSimulation.T
T
Definition:
ValidateOpDetSimulation.py:48
WireCell::Singleton::Instance
static T & Instance()
Definition:
Singleton.h:10
WireCell::Singleton
Definition:
Singleton.h:7
WireCell::Singleton::operator=
Singleton & operator=(Singleton const &)
Definition:
Singleton.h:19
WireCell
Definition:
Main.h:22
WireCell::Singleton::Singleton
Singleton(Singleton const &)
Definition:
Singleton.h:18
WireCell::Singleton::Singleton
Singleton()
Definition:
Singleton.h:16
Generated by
1.8.11