Geant4  10.05.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4VTHitsVector< T, Vector_t > Class Template Reference
Inheritance diagram for G4VTHitsVector< T, Vector_t >:
G4HitsCollection G4VHitsCollection

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)), int > = 0>
T * GetObject (G4int idx) const
 
template<typename U = store_type, enable_if_t< (is_pointer_t(U)), int > = 0>
T * GetObject (iterator itr) const
 
template<typename U = store_type, enable_if_t< (is_pointer_t(U)), int > = 0>
const T * GetObject (const_iterator itr) const
 
template<typename U = store_type, enable_if_t< (!is_pointer_t(U)), int > = 0>
T * GetObject (G4int idx) const
 
template<typename U = store_type, enable_if_t< (!is_pointer_t(U)), int > = 0>
T * GetObject (iterator itr) const
 
template<typename U = store_type, enable_if_t< (!is_pointer_t(U)), int > = 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
 
G4int entries () const
 
void clear ()
 
virtual G4VHitGetHit (size_t) const
 
virtual size_t GetSize () const
 
map_tGetMap () const
 
template<typename U = T, typename V = store_type, enable_if_t< (is_fundamental_t(U)&&is_pointer_t(V)), int > = 0>
store_type allocate () const
 
template<typename U = T, typename V = store_type, enable_if_t< (!is_fundamental_t(U)&&is_pointer_t(V)), int > = 0>
store_type allocate () const
 
template<typename U = store_type, enable_if_t< (is_pointer_t(U)), int > = 0>
store_type null () const
 
template<typename U = T, typename V = store_type, enable_if_t< (is_fundamental_t(U)&&!is_pointer_t(V)), int > = 0>
store_type allocate () const
 
template<typename U = T, typename V = store_type, enable_if_t< (!is_fundamental_t(U)&&!is_pointer_t(V)), int > = 0>
store_type allocate () const
 
template<typename U = store_type, enable_if_t< (!is_pointer_t(U)), int > = 0>
store_type null () const
 
template<typename U , typename VectorU_t , enable_if_t< (is_pointer_t(typename VectorU_t::value_type)), int > = 0>
this_typeoperator+= (const G4VTHitsVector< U, VectorU_t > &right) const
 
template<typename U , typename VectorU_t , enable_if_t< (!is_pointer_t(typename VectorU_t::value_type)), int > = 0>
this_typeoperator+= (const G4VTHitsVector< U, VectorU_t > &right) const
 
template<typename U , typename MapU_t , enable_if_t< (is_pointer_t(typename MapU_t::mapped_type)), int > = 0>
this_typeoperator+= (const G4VTHitsMap< U, MapU_t > &right) const
 
template<typename U , typename MapU_t , enable_if_t< !(is_pointer_t(typename MapU_t::mapped_type)), int > = 0>
this_typeoperator+= (const G4VTHitsMap< U, MapU_t > &right) const
 
template<typename U = T, enable_if_t< is_same_t(U, T), int > = 0>
G4int add (const G4int &key, U *&aHit) const
 
template<typename U = T, enable_if_t< !is_same_t(U, T), int > = 0>
G4int add (const G4int &key, U *&aHit) const
 
template<typename U = T, enable_if_t< is_same_t(U, T), int > = 0>
G4int add (const G4int &key, U &aHit) const
 
template<typename U = T, enable_if_t< !is_same_t(U, T), int > = 0>
G4int add (const G4int &key, U &aHit) const
 
template<typename U = T, enable_if_t< is_same_t(U, T), int > = 0>
G4int set (const G4int &key, U *&aHit) const
 
template<typename U = T, enable_if_t< !is_same_t(U, T), int > = 0>
G4int set (const G4int &key, U *&aHit) const
 
template<typename U = T, enable_if_t< is_same_t(U, T), int > = 0>
G4int set (const G4int &key, U &aHit) const
 
template<typename U = T, enable_if_t< !is_same_t(U, T), int > = 0>
G4int 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
 
G4StringGetName ()
 
G4StringGetSDname ()
 
void SetColID (G4int i)
 
G4int GetColID () const
 

Protected Member Functions

template<typename U = store_type, enable_if_t< (is_pointer_t(U)), int > = 0>
void resize (vector_type *&theHitsVector, const G4int &key) const
 
template<typename U = store_type, enable_if_t< (!is_pointer_t(U)), int > = 0>
void resize (vector_type *&theHitsVector, const G4int &key) const
 
vector_typeGetVector (const G4int &key) const
 
template<typename U = store_type, enable_if_t< is_pointer_t(U), int > = 0>
void _assign (vector_type *&theHitsVector, const G4int &key, T &val) const
 
template<typename U = store_type, enable_if_t< is_pointer_t(U), int > = 0>
void _assign (vector_type *&theHitsVector, const G4int &key, T *&val) const
 
template<typename U = store_type, enable_if_t< is_pointer_t(U), int > = 0>
void _add (vector_type *&theHitsVector, const G4int &key, T &val) const
 
template<typename U = store_type, enable_if_t< is_pointer_t(U), int > = 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), int > = 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), int > = 0>
void _add (vector_type *&theHitsVector, const G4int &key, V *&val) const
 
template<typename U = store_type, enable_if_t< is_pointer_t(U), int > = 0>
T & get (U &val) const
 
template<typename U = store_type, enable_if_t< is_pointer_t(U), int > = 0>
void delete_contents (vector_type *&theHitsVector) const
 
template<typename U = store_type, enable_if_t< is_pointer_t(U), int > = 0>
T & get_reference (U &val) const
 
template<typename U = store_type, enable_if_t< !is_pointer_t(U), int > = 0>
void _assign (vector_type *&theHitsVector, const G4int &key, T &val) const
 
template<typename U = store_type, enable_if_t< !is_pointer_t(U), int > = 0>
void _assign (vector_type *&theHitsVector, const G4int &key, T *&val) const
 
template<typename U = store_type, enable_if_t< !is_pointer_t(U), int > = 0>
void _add (vector_type *&theHitsVector, const G4int &key, T &val) const
 
template<typename U = store_type, enable_if_t< !is_pointer_t(U), int > = 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), int > = 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), int > = 0>
void _add (vector_type *&theHitsVector, const G4int &key, V *&val) const
 
template<typename U = store_type, enable_if_t< !is_pointer_t(U), int > = 0>
void delete_contents (vector_type *&) const
 
template<typename U = store_type, enable_if_t< !is_pointer_t(U), int > = 0>
T & get_reference (U &val) const
 

Private Types

template<bool _Bp, typename _Tp = void>
using enable_if_t = typename std::enable_if< _Bp, _Tp >::type
 

Additional Inherited Members

- Protected Attributes inherited from G4HitsCollection
voidtheCollection
 
- Protected Attributes inherited from G4VHitsCollection
G4String collectionName
 
G4String SDname
 
G4int colID
 

Member Typedef Documentation

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
using enable_if_t = typename std::enable_if<_Bp, _Tp>::type
private

Constructor & Destructor Documentation

G4VTHitsVector ( G4int  init_size = 0)
~G4VTHitsVector ( )
virtual

Member Function Documentation

G4bool operator== ( const this_type rhs) const
void DrawAllHits ( )
virtual

Reimplemented from G4VHitsCollection.

void PrintAllHits ( )
virtual

Reimplemented from G4VHitsCollection.

References G4cout, and G4endl.

Vector_t::size_type size ( )
Vector_t::size_type GetIndex ( iterator  itr)
Vector_t::size_type GetIndex ( const_iterator  itr) const
T* GetObject ( G4int  idx) const
T* GetObject ( iterator  itr) const
const T* GetObject ( const_iterator  itr) const
T* GetObject ( G4int  idx) const
T* GetObject ( iterator  itr) const
const T* GetObject ( const_iterator  itr) const
iterator end ( )
const_iterator begin ( ) const
const_iterator end ( ) const
const_iterator cbegin ( ) const
const_iterator cend ( ) const
G4int entries ( ) const
void clear ( )
virtual G4VHit* GetHit ( size_t  ) const
virtual

Reimplemented from G4VHitsCollection.

virtual size_t GetSize ( ) const
virtual

Reimplemented from G4VHitsCollection.

G4VTHitsVector< T, Vector_t >::map_t * GetMap ( ) const

References G4ThreadLocalStatic.

store_type allocate ( ) const
store_type allocate ( ) const
store_type allocate ( ) const
store_type null ( ) const
this_type& operator+= ( const G4VTHitsVector< U, VectorU_t > &  right) const
this_type& operator+= ( const G4VTHitsVector< U, VectorU_t > &  right) const
this_type& operator+= ( const G4VTHitsMap< U, MapU_t > &  right) const
this_type& operator+= ( const G4VTHitsMap< U, MapU_t > &  right) const
G4int add ( const G4int key,
U *&  aHit 
) const
G4int add ( const G4int key,
U *&  aHit 
) const
G4int add ( const G4int key,
U &  aHit 
) const
G4int add ( const G4int key,
U &  aHit 
) const
G4int set ( const G4int key,
U *&  aHit 
) const
G4int set ( const G4int key,
U *&  aHit 
) const
G4int set ( const G4int key,
U &  aHit 
) const
G4int set ( const G4int key,
U &  aHit 
) const
T* at ( G4int  key) const
T* operator[] ( G4int  key) const
void resize ( vector_type *&  theHitsVector,
const G4int key 
) const
protected
vector_type* GetVector ( const G4int key) const
protected
void _assign ( vector_type *&  theHitsVector,
const G4int key,
T &  val 
) const
protected
void _assign ( vector_type *&  theHitsVector,
const G4int key,
T *&  val 
) const
protected
void _add ( vector_type *&  theHitsVector,
const G4int key,
T &  val 
) const
protected
void _add ( vector_type *&  theHitsVector,
const G4int key,
T *&  val 
) const
protected
void _add ( vector_type *&  theHitsVector,
const G4int key,
V &  val 
) const
protected
void _add ( vector_type *&  theHitsVector,
const G4int key,
V *&  val 
) const
protected
T& get ( U &  val) const
protected
void delete_contents ( vector_type *&  theHitsVector) const
protected
void _assign ( vector_type *&  theHitsVector,
const G4int key,
T &  val 
) const
protected
void _assign ( vector_type *&  theHitsVector,
const G4int key,
T *&  val 
) const
protected
void _add ( vector_type *&  theHitsVector,
const G4int key,
T &  val 
) const
protected
void _add ( vector_type *&  theHitsVector,
const G4int key,
T *&  val 
) const
protected
void _add ( vector_type *&  theHitsVector,
const G4int key,
V &  val 
) const
protected
void _add ( vector_type *&  theHitsVector,
const G4int key,
V *&  val 
) const
protected
void delete_contents ( vector_type *&  ) const
protected
T& get_reference ( U &  val) const
protected