SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
Singleton< T > Class Template Reference

#include <Singleton.hh>

Public Member Functions

 Singleton ()
 
 ~Singleton ()
 
void release ()
 

Static Public Member Functions

static T * instance ()
 

Static Private Attributes

static T * m_singleton
 

Detailed Description

template<class T>
class Singleton< T >

Definition at line 10 of file Singleton.hh.

Constructor & Destructor Documentation

◆ Singleton()

Singleton ( )

Class constructor.

◆ ~Singleton()

~Singleton ( )

Class destructor.

Member Function Documentation

◆ instance()

static T* instance ( )
static

Get the singleton instance.

◆ release()

void release ( )

Delete the current singleton instance.

Member Data Documentation

◆ m_singleton

T* m_singleton
staticprivate

Definition at line 35 of file Singleton.hh.


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