Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4INCL::UnorderedVector< T > Class Template Reference

#include <G4INCLParticle.hh>

Inheritance diagram for G4INCL::UnorderedVector< T >:

Public Member Functions

 UnorderedVector ()
 
void remove (const T &t)
 

Detailed Description

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

Definition at line 62 of file G4INCLParticle.hh.

Constructor & Destructor Documentation

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

Definition at line 64 of file G4INCLParticle.hh.

64 {}

Member Function Documentation

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

Definition at line 82 of file G4INCLParticle.hh.

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

82  {
83  const typename std::vector<T>::iterator removeMe = std::find(begin(), end(), t);
84 // assert(removeMe!=end());
85  *removeMe = back();
86  pop_back();
87  }

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