- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/particles/management/include/G4ShortLivedTable.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4ShortLivedTable.hh,v 1.1 3 2008/03/20 02:23:31kurasige Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4ShortLivedTable.hh,v 1.14 2010/08/10 15:47:42 kurasige Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // … … 58 58 public: 59 59 // Use STL Vector as list of shortlives 60 typedef std::vector< G4ParticleDefinition*> G4ShortLivedList;60 typedef std::vector<const G4ParticleDefinition*> G4ShortLivedList; 61 61 62 62 public: … … 69 69 virtual ~G4ShortLivedTable(); 70 70 71 G4bool IsShortLived( G4ParticleDefinition*) const;71 G4bool IsShortLived(const G4ParticleDefinition*) const; 72 72 // return true if the particle is shortlived particle 73 73 … … 81 81 // return true if the list contains the specified particle 82 82 83 void Insert( G4ParticleDefinition* particle);83 void Insert(const G4ParticleDefinition* particle); 84 84 // add the particle in the list 85 85 86 void Remove( G4ParticleDefinition* particle);86 void Remove(const G4ParticleDefinition* particle); 87 87 // remove the particle (not delete) from the list 88 88 … … 132 132 { 133 133 if ( (index >=0 ) && (index < Entries()) ) { 134 return (*fShortLivedList)[index];134 return const_cast<G4ParticleDefinition*>( (*fShortLivedList)[index] ); 135 135 } else { 136 136 return 0;
Note: See TracChangeset
for help on using the changeset viewer.