Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#include <G4THitsVector.hh>
Public Types | |
typedef G4VTHitsVector< T, Vector_t > | this_type |
typedef T | value_type |
typedef Vector_t | vector_type |
typedef vector_type::iterator | iterator |
typedef vector_type::const_iterator | const_iterator |
typedef Vector_t::value_type | store_type |
typedef std::pair< G4int, store_type > | pair_t |
typedef std::map< G4int, store_type > | map_t |
typedef std::unordered_map< G4int, store_type > | uomap_t |
typedef std::multimap< G4int, store_type > | mmap_t |
typedef std::unordered_multimap< G4int, store_type > | uommap_t |
Public Member Functions | |
G4VTHitsVector (G4int init_size=0) | |
G4VTHitsVector (G4String detName, G4String colNam, G4int init_size=0) | |
virtual | ~G4VTHitsVector () |
G4bool | operator== (const this_type &rhs) const |
virtual void | DrawAllHits () |
virtual void | PrintAllHits () |
Vector_t * | GetContainer () const |
Vector_t::size_type | size () |
Vector_t::size_type | GetIndex (iterator itr) |
Vector_t::size_type | GetIndex (const_iterator itr) const |
template<typename U = store_type, enable_if_t<(is_pointer_t(U)), G4int > = 0> | |
T * | GetObject (G4int idx) const |
template<typename U = store_type, enable_if_t<(is_pointer_t(U)), G4int > = 0> | |
T * | GetObject (iterator itr) const |
template<typename U = store_type, enable_if_t<(is_pointer_t(U)), G4int > = 0> | |
const T * | GetObject (const_iterator itr) const |
template<typename U = store_type, enable_if_t<(!is_pointer_t(U)), G4int > = 0> | |
T * | GetObject (G4int idx) const |
template<typename U = store_type, enable_if_t<(!is_pointer_t(U)), G4int > = 0> | |
T * | GetObject (iterator itr) const |
template<typename U = store_type, enable_if_t<(!is_pointer_t(U)), G4int > = 0> | |
const T * | GetObject (const_iterator itr) const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
Vector_t * | GetVector () const |
std::size_t | entries () const |
void | clear () |
virtual G4VHit * | GetHit (std::size_t) const |
virtual std::size_t | GetSize () const |
map_t * | GetMap () const |
template<typename U = T, typename V = store_type, enable_if_t<(is_fundamental_t(U) &&is_pointer_t(V)), G4int > = 0> | |
store_type | allocate () const |
template<typename U = T, typename V = store_type, enable_if_t<(!is_fundamental_t(U) &&is_pointer_t(V)), G4int > = 0> | |
store_type | allocate () const |
template<typename U = store_type, enable_if_t<(is_pointer_t(U)), G4int > = 0> | |
store_type | null () const |
template<typename U = T, typename V = store_type, enable_if_t<(is_fundamental_t(U) &&!is_pointer_t(V)), G4int > = 0> | |
store_type | allocate () const |
template<typename U = T, typename V = store_type, enable_if_t<(!is_fundamental_t(U) &&!is_pointer_t(V)), G4int > = 0> | |
store_type | allocate () const |
template<typename U = store_type, enable_if_t<(!is_pointer_t(U)), G4int > = 0> | |
store_type | null () const |
template<typename U , typename VectorU_t , enable_if_t<(is_pointer_t(typename VectorU_t::value_type)), G4int > = 0> | |
this_type & | operator+= (const G4VTHitsVector< U, VectorU_t > &right) const |
template<typename U , typename VectorU_t , enable_if_t<(!is_pointer_t(typename VectorU_t::value_type)), G4int > = 0> | |
this_type & | operator+= (const G4VTHitsVector< U, VectorU_t > &right) const |
template<typename U , typename MapU_t , enable_if_t<(is_pointer_t(typename MapU_t::mapped_type)), G4int > = 0> | |
this_type & | operator+= (const G4VTHitsMap< U, MapU_t > &right) const |
template<typename U , typename MapU_t , enable_if_t<!(is_pointer_t(typename MapU_t::mapped_type)), G4int > = 0> | |
this_type & | operator+= (const G4VTHitsMap< U, MapU_t > &right) const |
template<typename U = T, enable_if_t< is_same_t(U, T), G4int > = 0> | |
std::size_t | add (const G4int &key, U *&aHit) const |
template<typename U = T, enable_if_t<!is_same_t(U, T), G4int > = 0> | |
std::size_t | add (const G4int &key, U *&aHit) const |
template<typename U = T, enable_if_t< is_same_t(U, T), G4int > = 0> | |
std::size_t | add (const G4int &key, U &aHit) const |
template<typename U = T, enable_if_t<!is_same_t(U, T), G4int > = 0> | |
std::size_t | add (const G4int &key, U &aHit) const |
template<typename U = T, enable_if_t< is_same_t(U, T), G4int > = 0> | |
std::size_t | set (const G4int &key, U *&aHit) const |
template<typename U = T, enable_if_t<!is_same_t(U, T), G4int > = 0> | |
std::size_t | set (const G4int &key, U *&aHit) const |
template<typename U = T, enable_if_t< is_same_t(U, T), G4int > = 0> | |
std::size_t | set (const G4int &key, U &aHit) const |
template<typename U = T, enable_if_t<!is_same_t(U, T), G4int > = 0> | |
std::size_t | set (const G4int &key, U &aHit) const |
T * | at (G4int key) const |
T * | operator[] (G4int key) const |
Public Member Functions inherited from G4HitsCollection | |
G4HitsCollection () | |
G4HitsCollection (G4String detName, G4String colNam) | |
virtual | ~G4HitsCollection () |
G4bool | operator== (const G4HitsCollection &right) const |
Public Member Functions inherited from G4VHitsCollection | |
G4VHitsCollection () | |
G4VHitsCollection (G4String detName, G4String colNam) | |
virtual | ~G4VHitsCollection () |
G4bool | operator== (const G4VHitsCollection &right) const |
virtual void | DrawAllHits () |
virtual void | PrintAllHits () |
const G4String & | GetName () const |
const G4String & | GetSDname () const |
void | SetColID (G4int i) |
G4int | GetColID () const |
virtual G4VHit * | GetHit (size_t) const |
virtual size_t | GetSize () const |
Protected Member Functions | |
template<typename U = store_type, enable_if_t<(is_pointer_t(U)), G4int > = 0> | |
void | resize (vector_type *&theHitsVector, const G4int &key) const |
template<typename U = store_type, enable_if_t<(!is_pointer_t(U)), G4int > = 0> | |
void | resize (vector_type *&theHitsVector, const G4int &key) const |
vector_type * | GetVector (const G4int &key) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _assign (vector_type *&theHitsVector, const G4int &key, T &val) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _assign (vector_type *&theHitsVector, const G4int &key, T *&val) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, T &val) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, T *&val) const |
template<typename V , typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, V &val) const |
template<typename V , typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, V *&val) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
T & | get (U &val) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | delete_contents (vector_type *&theHitsVector) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
T & | get_reference (U &val) const |
template<typename U = store_type, enable_if_t<!is_pointer_t(U), G4int > = 0> | |
void | _assign (vector_type *&theHitsVector, const G4int &key, T &val) const |
template<typename U = store_type, enable_if_t<!is_pointer_t(U), G4int > = 0> | |
void | _assign (vector_type *&theHitsVector, const G4int &key, T *&val) const |
template<typename U = store_type, enable_if_t<!is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, T &val) const |
template<typename U = store_type, enable_if_t<!is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, T *&val) const |
template<typename V , typename U = store_type, enable_if_t<!is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, V &val) const |
template<typename V , typename U = store_type, enable_if_t<!is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, V *&val) const |
template<typename U = store_type, enable_if_t<!is_pointer_t(U), G4int > = 0> | |
void | delete_contents (vector_type *&) const |
template<typename U = store_type, enable_if_t<!is_pointer_t(U), G4int > = 0> | |
T & | get_reference (U &val) const |
Additional Inherited Members | |
Protected Attributes inherited from G4HitsCollection | |
void * | theCollection |
Protected Attributes inherited from G4VHitsCollection | |
G4String | collectionName |
G4String | SDname |
G4int | colID |
Definition at line 52 of file G4THitsVector.hh.
typedef vector_type::const_iterator G4VTHitsVector< T, Vector_t >::const_iterator |
Definition at line 59 of file G4THitsVector.hh.
typedef vector_type::iterator G4VTHitsVector< T, Vector_t >::iterator |
Definition at line 58 of file G4THitsVector.hh.
typedef std::map<G4int, store_type> G4VTHitsVector< T, Vector_t >::map_t |
Definition at line 63 of file G4THitsVector.hh.
typedef std::multimap<G4int, store_type> G4VTHitsVector< T, Vector_t >::mmap_t |
Definition at line 65 of file G4THitsVector.hh.
typedef std::pair<G4int, store_type> G4VTHitsVector< T, Vector_t >::pair_t |
Definition at line 62 of file G4THitsVector.hh.
typedef Vector_t::value_type G4VTHitsVector< T, Vector_t >::store_type |
Definition at line 61 of file G4THitsVector.hh.
typedef G4VTHitsVector<T, Vector_t> G4VTHitsVector< T, Vector_t >::this_type |
Definition at line 55 of file G4THitsVector.hh.
typedef std::unordered_map<G4int, store_type> G4VTHitsVector< T, Vector_t >::uomap_t |
Definition at line 64 of file G4THitsVector.hh.
typedef std::unordered_multimap<G4int, store_type> G4VTHitsVector< T, Vector_t >::uommap_t |
Definition at line 66 of file G4THitsVector.hh.
typedef T G4VTHitsVector< T, Vector_t >::value_type |
Definition at line 56 of file G4THitsVector.hh.
typedef Vector_t G4VTHitsVector< T, Vector_t >::vector_type |
Definition at line 57 of file G4THitsVector.hh.
G4VTHitsVector< T, Vector_t >::G4VTHitsVector | ( | G4int | init_size = 0 | ) |
Definition at line 579 of file G4THitsVector.hh.
G4VTHitsVector< T, Vector_t >::G4VTHitsVector | ( | G4String | detName, |
G4String | colNam, | ||
G4int | init_size = 0 |
||
) |
Definition at line 592 of file G4THitsVector.hh.
|
virtual |
Definition at line 607 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 467 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::add().
|
inlineprotected |
Definition at line 530 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 473 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 536 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 480 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 543 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 487 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 550 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 453 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::resize(), and G4VTHitsVector< T, Vector_t >::set().
|
inlineprotected |
Definition at line 517 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 460 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 523 of file G4THitsVector.hh.
|
inline |
Definition at line 326 of file G4THitsVector.hh.
|
inline |
Definition at line 336 of file G4THitsVector.hh.
|
inline |
Definition at line 304 of file G4THitsVector.hh.
|
inline |
Definition at line 314 of file G4THitsVector.hh.
|
inline |
Definition at line 191 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::add(), G4VTHitsVector< T, Vector_t >::operator+=(), G4VTHitsVector< T, Vector_t >::resize(), and G4VTHitsVector< T, Vector_t >::set().
|
inline |
Definition at line 200 of file G4THitsVector.hh.
|
inline |
Definition at line 218 of file G4THitsVector.hh.
|
inline |
Definition at line 226 of file G4THitsVector.hh.
|
inline |
Definition at line 402 of file G4THitsVector.hh.
|
inline |
Definition at line 156 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::GetIndex().
|
inline |
Definition at line 158 of file G4THitsVector.hh.
|
inline |
Definition at line 160 of file G4THitsVector.hh.
|
inline |
Definition at line 161 of file G4THitsVector.hh.
|
inline |
Definition at line 672 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 556 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 499 of file G4THitsVector.hh.
|
virtual |
Reimplemented from G4VHitsCollection.
Definition at line 643 of file G4THitsVector.hh.
|
inline |
Definition at line 157 of file G4THitsVector.hh.
|
inline |
Definition at line 159 of file G4THitsVector.hh.
|
inline |
Definition at line 168 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 493 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 507 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::add(), G4VTHitsVector< T, Vector_t >::at(), G4VTHitsVector< T, Vector_t >::operator[](), and G4VTHitsVector< T, Vector_t >::set().
|
inlineprotected |
Definition at line 560 of file G4THitsVector.hh.
|
inline |
Definition at line 101 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::begin(), G4VTHitsVector< T, Vector_t >::cbegin(), G4VTHitsVector< T, Vector_t >::cend(), G4VTHitsVector< T, Vector_t >::end(), G4VTHitsVector< T, Vector_t >::GetObject(), and G4VTHitsVector< T, Vector_t >::size().
|
inlinevirtual |
Definition at line 176 of file G4THitsVector.hh.
|
inline |
Definition at line 113 of file G4THitsVector.hh.
|
inline |
Definition at line 108 of file G4THitsVector.hh.
|
inline |
Definition at line 627 of file G4THitsVector.hh.
|
inline |
Definition at line 132 of file G4THitsVector.hh.
|
inline |
Definition at line 151 of file G4THitsVector.hh.
|
inline |
Definition at line 119 of file G4THitsVector.hh.
|
inline |
Definition at line 138 of file G4THitsVector.hh.
|
inline |
Definition at line 126 of file G4THitsVector.hh.
|
inline |
Definition at line 145 of file G4THitsVector.hh.
|
inlinevirtual |
Reimplemented from G4VHitsCollection.
Definition at line 177 of file G4THitsVector.hh.
|
inline |
Definition at line 164 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::add(), G4VTHitsVector< T, Vector_t >::at(), G4VTHitsVector< T, Vector_t >::G4VTHitsVector(), G4VTHitsVector< T, Vector_t >::GetVector(), G4VTHitsVector< T, Vector_t >::operator+=(), G4VTHitsVector< T, Vector_t >::operator[](), and G4VTHitsVector< T, Vector_t >::set().
|
inlineprotected |
Definition at line 441 of file G4THitsVector.hh.
|
inline |
Definition at line 207 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::operator+=(), and G4VTHitsVector< T, Vector_t >::resize().
|
inline |
Definition at line 233 of file G4THitsVector.hh.
|
inline |
Definition at line 275 of file G4THitsVector.hh.
|
inline |
Definition at line 286 of file G4THitsVector.hh.
|
inline |
Definition at line 246 of file G4THitsVector.hh.
|
inline |
Definition at line 261 of file G4THitsVector.hh.
G4bool G4VTHitsVector< T, Vector_t >::operator== | ( | const this_type & | rhs | ) | const |
Definition at line 617 of file G4THitsVector.hh.
|
inline |
Definition at line 409 of file G4THitsVector.hh.
|
virtual |
Reimplemented from G4VHitsCollection.
Definition at line 651 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 419 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::at(), G4VTHitsVector< T, Vector_t >::G4VTHitsVector(), G4VTHitsVector< T, Vector_t >::GetVector(), and G4VTHitsVector< T, Vector_t >::operator[]().
|
inlineprotected |
Definition at line 434 of file G4THitsVector.hh.
|
inline |
Definition at line 380 of file G4THitsVector.hh.
|
inline |
Definition at line 390 of file G4THitsVector.hh.
|
inline |
Definition at line 352 of file G4THitsVector.hh.
|
inline |
Definition at line 362 of file G4THitsVector.hh.
|
inline |
Definition at line 106 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::GetObject().