CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::Singleton< T > Class Template Reference

Curiously Recurring Template Pattern (CRTP) for Meyers singleton. More...

Inheritance diagram for corsika::Singleton< T >:

Public Member Functions

 Singleton (const Singleton &)=delete
 
Singletonoperator= (const Singleton &)=delete
 

Detailed Description

template<typename T>
class corsika::Singleton< T >

Curiously Recurring Template Pattern (CRTP) for Meyers singleton.

The singleton class is implemented as follows

#include <utl/Singleton.hpp>
class SomeClass : public utl::Singleton<SomeClass> {
...
private:
// prevent creation, destruction
SomeClass() { }
~SomeClass() { }
friend class utl::Singleton<SomeClass>;
};

Singleton automatically prevents copying of the derived class.

Author
Darko Veberic
Date
9 Aug 2006
Version
Id
Singleton.h 25091 2014-01-30 09:49:57Z darko

Definition at line 40 of file Singleton.hpp.


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