Geant4
10.01.p03
|
#include <G4ThreadLocalSingleton.hh>
Public Member Functions | |
G4ThreadLocalSingleton () | |
~G4ThreadLocalSingleton () | |
T * | Instance () const |
Private Member Functions | |
G4ThreadLocalSingleton (G4ThreadLocalSingleton &rhs) | |
void | Register (T *i) const |
void | Clear () |
Private Member Functions inherited from G4Cache< T * > | |
G4Cache () | |
G4Cache (const value_type &v) | |
G4Cache (const G4Cache &rhs) | |
virtual | ~G4Cache () |
value_type & | Get () const |
void | Put (const value_type &val) const |
value_type | Pop () |
G4Cache & | operator= (const G4Cache &rhs) |
const int & | GetId () const |
Private Attributes | |
std::list< T * > | instances |
G4Mutex | listm |
Friends | |
void | G4AutoDelete::Register (T *) |
Additional Inherited Members | |
Private Types inherited from G4Cache< T * > | |
typedef T * | value_type |
Definition at line 108 of file G4ThreadLocalSingleton.hh.
G4ThreadLocalSingleton< T >::G4ThreadLocalSingleton | ( | ) |
Definition at line 135 of file G4ThreadLocalSingleton.hh.
References G4MUTEXINIT, G4ThreadLocalSingleton< T >::listm, and G4Cache< VALTYPE >::Put().
G4ThreadLocalSingleton< T >::~G4ThreadLocalSingleton | ( | ) |
Definition at line 141 of file G4ThreadLocalSingleton.hh.
References JA::Clear(), and G4MUTEXDESTROY.
|
private |
Definition at line 158 of file G4ThreadLocalSingleton.hh.
|
private |
Definition at line 167 of file G4ThreadLocalSingleton.hh.
T * G4ThreadLocalSingleton< T >::Instance | ( | void | ) | const |
Definition at line 147 of file G4ThreadLocalSingleton.hh.
References G4Cache< VALTYPE >::Get(), instance, G4Cache< VALTYPE >::Put(), and G4AutoDelete::Register().
Referenced by G4BiasingTrackDataStore::GetInstance(), G4BiasingOperationManager::GetInstance(), G4NuclearLevelStore::GetInstance(), G4HadronicProcessStore::Instance(), and G4LossTableManager::Instance().
|
private |
Definition at line 160 of file G4ThreadLocalSingleton.hh.
Referenced by G4AutoDelete::Register().
|
friend |
|
mutableprivate |
Definition at line 125 of file G4ThreadLocalSingleton.hh.
|
mutableprivate |
Definition at line 126 of file G4ThreadLocalSingleton.hh.
Referenced by G4ThreadLocalSingleton< T >::G4ThreadLocalSingleton().