Singleton< T > Class Template Reference

#include <Singleton.hh>

Inheritance diagram for Singleton< T >:

Inheritance graph
[legend]
Collaboration diagram for Singleton< T >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class T>
class Singleton< T >

Definition at line 7 of file Singleton.hh.


Public Member Functions

void release ()
 Singleton ()
 ~Singleton ()

Static Public Member Functions

static T * instance ()

Static Private Attributes

static T * m_singleton = 0

Constructor & Destructor Documentation

template<class T>
Singleton< T >::Singleton (  )  [inline]

Definition at line 23 of file Singleton.hh.

template<class T>
Singleton< T >::~Singleton (  )  [inline]

Definition at line 27 of file Singleton.hh.


Member Function Documentation

template<class T>
T * Singleton< T >::instance (  )  [inline, static]

Definition at line 31 of file Singleton.hh.

References Singleton< T >::m_singleton.

Referenced by slic::LcioManager::addInitialMCParticleCollection(), slic::PrimaryGeneratorAction::applyLorentzTransformation(), slic::StdHepEventSource::beginEvent(), slic::LcioEventSource::beginEvent(), slic::EventAction::BeginOfEventAction(), slic::RunAction::BeginOfRunAction(), slic::EventSourceWithInputFile::beginRun(), slic::LCSUSYPhysics::ConstructParticle(), slic::LCExtendedParticles::ConstructParticle(), slic::LcioMcpFactory::createFinalMcpCollection(), slic::LcioMcpFactory::createFinalMcpCollectionFromTrajectoryContainer(), slic::LcioManager::createLCEvent(), slic::LcioMcpFactory::createMcpFromPrimary(), slic::LcioManager::createRunHeader(), slic::LcioEventSource::dumpCurrentEvent(), slic::LcioManager::endEvent(), slic::EventAction::EndOfEventAction(), slic::RunAction::EndOfRunAction(), slic::LcioManager::endRun(), slic::StdHepEventSource::generate(), slic::LcioEventSource::generate(), slic::PrimaryGeneratorAction::GeneratePrimaries(), slic::LcioEventSource::getCurrentMcpLCCollection(), slic::LcioFileNamer::getFieldValue(), slic::SlicApplication::initialize(), slic::RunManager::Initialize(), slic::RunManager::InitializePhysics(), slic::LcioHitsCollectionBuilder::LcioHitsCollectionBuilder(), slic::LcioManager::LcioManager(), slic::LcioPrimaryGenerator::LcioPrimaryGenerator(), slic::SlicMain::main(), slic::LcioFileNamer::makeEventName(), slic::LcioFileNamer::makeEventNumberString(), slic::LcioFileNamer::makeFileBasedName(), slic::LcioFileNamer::makeGPSName(), slic::LcioFileNamer::makeGunName(), slic::Module::Module(), slic::SlicApplication::printUsage(), slic::SlicApplication::printVersion(), slic::SlicApplication::run(), slic::PhysicsMessenger::SetNewValue(), slic::LcioMcpMessenger::SetNewValue(), slic::GeneratorMessenger::SetNewValue(), slic::FieldMessenger::SetNewValue(), slic::EventDebuggerMessenger::SetNewValue(), slic::StdHepToLcioConvertor::setupDaughters(), slic::PhysicsListManager::setupExtended(), slic::TrackingAction::TrackingAction(), slic::SteppingAction::UserSteppingAction(), slic::Module::~Module(), and slic::SlicApplication::~SlicApplication().

template<class T>
void Singleton< T >::release (  )  [inline]

Definition at line 40 of file Singleton.hh.

References Singleton< T >::m_singleton.


Member Data Documentation

template<class T>
T * Singleton< T >::m_singleton = 0 [inline, static, private]

Definition at line 17 of file Singleton.hh.

Referenced by Singleton< T >::instance(), and Singleton< T >::release().


The documentation for this class was generated from the following file:
Generated on Mon Jun 7 17:46:35 2010 for Simulator for the Linear Collider by  doxygen 1.5.4