|
Geant4
10.02.p02
|
#include <G4ThreadLocalSingleton.hh>
Inheritance diagram for G4ThreadLocalSingleton< T >:
Collaboration diagram for G4ThreadLocalSingleton< T >: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().
Here is the call graph for this function:| G4ThreadLocalSingleton< T >::~G4ThreadLocalSingleton | ( | ) |
Definition at line 141 of file G4ThreadLocalSingleton.hh.
References JA::Clear(), and G4MUTEXDESTROY.
Here is the call graph for this function:
|
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 G4AdjointCSManager::GetAdjointCSManager(), G4BiasingOperationManager::GetInstance(), G4NuclearLevelStore::GetInstance(), G4HadronicInteractionRegistry::Instance(), G4CrossSectionDataSetRegistry::Instance(), G4HadronicProcessStore::Instance(), and G4LossTableManager::Instance().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 160 of file G4ThreadLocalSingleton.hh.
Referenced by G4AutoDelete::Register().
Here is the caller graph for this function:
|
friend |
|
mutableprivate |
Definition at line 125 of file G4ThreadLocalSingleton.hh.
|
mutableprivate |
Definition at line 126 of file G4ThreadLocalSingleton.hh.
Referenced by G4ThreadLocalSingleton< T >::G4ThreadLocalSingleton().