Static Public Member Functions | Private Member Functions | List of all members
WireCell::Singleton< T > Class Template Reference

#include <Singleton.h>

Static Public Member Functions

static T & Instance ()
 

Private Member Functions

 Singleton ()
 
 ~Singleton ()
 
 Singleton (Singleton const &)
 
Singletonoperator= (Singleton const &)
 

Detailed Description

template<class T>
class WireCell::Singleton< T >

Definition at line 7 of file Singleton.h.

Constructor & Destructor Documentation

template<class T>
WireCell::Singleton< T >::Singleton ( )
inlineprivate

Definition at line 16 of file Singleton.h.

16 {}
template<class T>
WireCell::Singleton< T >::~Singleton ( )
inlineprivate

Definition at line 17 of file Singleton.h.

17 {}
template<class T>
WireCell::Singleton< T >::Singleton ( Singleton< T > const &  )
inlineprivate

Definition at line 18 of file Singleton.h.

18 {}

Member Function Documentation

template<class T>
static T& WireCell::Singleton< T >::Instance ( void  )
inlinestatic

Definition at line 10 of file Singleton.h.

10  {
11  static T instance;
12  return instance;
13  }
const std::string instance
template<class T>
Singleton& WireCell::Singleton< T >::operator= ( Singleton< T > const &  )
inlineprivate

Definition at line 19 of file Singleton.h.

19 {}

The documentation for this class was generated from the following file: