Geant4
10.03.p03
|
#include <G4TAtomicHitsMap.hh>
Public Types | |
typedef G4atomic< T > | value_type |
typedef value_type * | mapped_type |
typedef std::map< G4int, mapped_type > | container_type |
typedef container_type::iterator | iterator |
typedef container_type::const_iterator | const_iterator |
Additional Inherited Members | |
Protected Attributes inherited from G4VHitsCollection | |
G4String | collectionName |
G4String | SDname |
G4int | colID |
This is an implementation of G4THitsMap<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 G4THitsMap<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 G4THitsMap<T> in thread-local instances.
Definition at line 73 of file G4TAtomicHitsMap.hh.
typedef container_type::const_iterator G4TAtomicHitsMap< T >::const_iterator |
Definition at line 84 of file G4TAtomicHitsMap.hh.
typedef std::map<G4int, mapped_type> G4TAtomicHitsMap< T >::container_type |
Definition at line 82 of file G4TAtomicHitsMap.hh.
typedef container_type::iterator G4TAtomicHitsMap< T >::iterator |
Definition at line 83 of file G4TAtomicHitsMap.hh.
typedef value_type* G4TAtomicHitsMap< T >::mapped_type |
Definition at line 81 of file G4TAtomicHitsMap.hh.
typedef G4atomic<T> G4TAtomicHitsMap< T >::value_type |
Definition at line 77 of file G4TAtomicHitsMap.hh.
G4TAtomicHitsMap< T >::G4TAtomicHitsMap | ( | ) |
Definition at line 155 of file G4TAtomicHitsMap.hh.
G4TAtomicHitsMap< T >::G4TAtomicHitsMap | ( | G4String | detName, |
G4String | colNam | ||
) |
Definition at line 161 of file G4TAtomicHitsMap.hh.
|
virtual |
Definition at line 169 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 225 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 240 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 135 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 138 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 141 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 142 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 296 of file G4TAtomicHitsMap.hh.
|
virtual |
|
inline |
|
inline |
Definition at line 139 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 120 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 144 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 145 of file G4TAtomicHitsMap.hh.
|
inlinevirtual |
Reimplemented from G4VHitsCollection.
Definition at line 128 of file G4TAtomicHitsMap.hh.
|
inline |
|
inlinevirtual |
Reimplemented from G4VHitsCollection.
Definition at line 129 of file G4TAtomicHitsMap.hh.
G4TAtomicHitsMap< T > & G4TAtomicHitsMap< T >::operator+= | ( | const G4TAtomicHitsMap< T > & | right | ) | const |
Definition at line 186 of file G4TAtomicHitsMap.hh.
G4TAtomicHitsMap< T > & G4TAtomicHitsMap< T >::operator+= | ( | const G4THitsMap< T > & | right | ) | const |
Definition at line 196 of file G4TAtomicHitsMap.hh.
G4int G4TAtomicHitsMap< T >::operator== | ( | const G4TAtomicHitsMap< T > & | right | ) | const |
Definition at line 179 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 206 of file G4TAtomicHitsMap.hh.
|
virtual |
Reimplemented from G4VHitsCollection.
Definition at line 289 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 258 of file G4TAtomicHitsMap.hh.
|
inline |
Definition at line 270 of file G4TAtomicHitsMap.hh.