| Geant4
    10.03.p03
    | 
#include <G4TAtomicHitsCollection.hh>


| Public Types | |
| typedef T | base_type | 
| typedef G4atomic< T > | value_type | 
| typedef std::deque< value_type * > | container_type | 
| Protected Attributes | |
| container_type * | theCollection | 
| G4Mutex | fMutex | 
|  Protected Attributes inherited from G4VHitsCollection | |
| G4String | collectionName | 
| G4String | SDname | 
| G4int | colID | 
This is an implementation of G4THitsCollection<T> where the underlying type is G4atomic<T>, not just T. A static assert is provided to ensure that T is fundamental. This class should be used in lieu of G4THitsCollection<T> when memory is a concern. Atomics are thread-safe and generally faster that mutexes (as long as the STL implementation is lock-free) but the synchronization does not come without a cost. If performance is the primary concern, use G4THitsCollection<T> in thread-local instances.
Definition at line 86 of file G4TAtomicHitsCollection.hh.
| typedef T G4TAtomicHitsCollection< T >::base_type | 
Definition at line 90 of file G4TAtomicHitsCollection.hh.
| typedef std::deque<value_type*> G4TAtomicHitsCollection< T >::container_type | 
Definition at line 95 of file G4TAtomicHitsCollection.hh.
| typedef G4atomic<T> G4TAtomicHitsCollection< T >::value_type | 
Definition at line 94 of file G4TAtomicHitsCollection.hh.
| G4TAtomicHitsCollection< T >::G4TAtomicHitsCollection | ( | ) | 
Definition at line 163 of file G4TAtomicHitsCollection.hh.
| G4TAtomicHitsCollection< T >::G4TAtomicHitsCollection | ( | G4String | detName, | 
| G4String | colNam | ||
| ) | 
Definition at line 168 of file G4TAtomicHitsCollection.hh.
| 
 | virtual | 
Definition at line 175 of file G4TAtomicHitsCollection.hh.
| 
 | virtual | 
Reimplemented from G4VHitsCollection.
Definition at line 192 of file G4TAtomicHitsCollection.hh.
| 
 | inline | 
Definition at line 137 of file G4TAtomicHitsCollection.hh.
| 
 | inlinevirtual | 
Reimplemented from G4VHitsCollection.
Definition at line 145 of file G4TAtomicHitsCollection.hh.
| 
 | inlinevirtual | 
Reimplemented from G4VHitsCollection.
Definition at line 149 of file G4TAtomicHitsCollection.hh.
| 
 | inline | 
Definition at line 124 of file G4TAtomicHitsCollection.hh.
| 
 | inline | 
Definition at line 129 of file G4TAtomicHitsCollection.hh.
| G4int G4TAtomicHitsCollection< T >::operator== | ( | const G4TAtomicHitsCollection< T > & | right | ) | const | 
Definition at line 186 of file G4TAtomicHitsCollection.hh.
| 
 | inline | 
Definition at line 119 of file G4TAtomicHitsCollection.hh.
| 
 | virtual | 
Reimplemented from G4VHitsCollection.
Definition at line 200 of file G4TAtomicHitsCollection.hh.
| 
 | protected | 
Definition at line 157 of file G4TAtomicHitsCollection.hh.
| 
 | protected | 
Definition at line 156 of file G4TAtomicHitsCollection.hh.