Import Geant4 9.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:58:43 +02:00
parent 96c8bcd0af
commit b79225fb37
7544 changed files with 245407 additions and 91099 deletions
@@ -33,6 +33,9 @@
//
// Creation date: 29 March 2007
// -----------------------------------------------------------------------------
//
// 080602 Fix memory leaks by T. Koi
// 081120 Add EraseParticipant and InsertParticipant Methods by T. Koi
#ifndef G4QMDSystem_hh
#define G4QMDSystem_hh
@@ -50,7 +53,9 @@ class G4QMDSystem
void SubtractSystem ( G4QMDSystem* );
void DeleteParticipant( G4int i ) { participants.erase( std::find ( participants.begin() , participants.end() , participants[ i ] ) ); };
G4QMDParticipant* EraseParticipant( G4int i ) { G4QMDParticipant* particle = participants[ i ]; participants.erase( std::find ( participants.begin() , participants.end() , participants[ i ] ) ) ; return particle; };
void DeleteParticipant( G4int i ) { delete participants[ i ] ; participants.erase( std::find ( participants.begin() , participants.end() , participants[ i ] ) ); };
void InsertParticipant( G4QMDParticipant* particle , G4int j );
G4int GetTotalNumberOfParticipant() { return participants.size(); };