Geant4-11
Public Member Functions
G4INCL::UnorderedVector< T > Class Template Reference

#include <G4INCLUnorderedVector.hh>

Inheritance diagram for G4INCL::UnorderedVector< T >:

Public Member Functions

G4bool contains (const T &t) const
 
void remove (const T &t)
 
 UnorderedVector ()
 

Detailed Description

template<class T>
class G4INCL::UnorderedVector< T >

Definition at line 63 of file G4INCLUnorderedVector.hh.

Constructor & Destructor Documentation

◆ UnorderedVector()

template<class T >
G4INCL::UnorderedVector< T >::UnorderedVector ( )
inline

Definition at line 65 of file G4INCLUnorderedVector.hh.

65{}

Member Function Documentation

◆ contains()

template<class T >
G4bool G4INCL::UnorderedVector< T >::contains ( const T &  t) const
inline

◆ remove()

template<class T >
void G4INCL::UnorderedVector< T >::remove ( const T &  t)
inline

Definition at line 88 of file G4INCLUnorderedVector.hh.

88 {
89 const typename std::vector<T>::iterator removeMe = std::find(begin(), end(), t);
90// assert(removeMe!=end());
91 *removeMe = back();
92 pop_back();
93 }

Referenced by G4INCL::ProjectileRemnant::addDynamicalSpectators(), G4INCL::Store::extractDynamicalSpectators(), G4INCL::Store::particleHasBeenDestroyed(), G4INCL::Store::particleHasBeenEjected(), G4INCL::Store::removeAvatar(), and G4INCL::Cluster::removeParticle().


The documentation for this class was generated from the following file: