Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/particles/management/include/G4ShortLivedTable.hh

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4ShortLivedTable.hh,v 1.13 2008/03/20 02:23:31 kurasige 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 $
    2929//
    3030//
     
    5858 public:
    5959   // Use STL Vector as list of shortlives
    60    typedef std::vector<G4ParticleDefinition*>  G4ShortLivedList;
     60   typedef std::vector<const G4ParticleDefinition*>  G4ShortLivedList;
    6161
    6262 public:
     
    6969   virtual ~G4ShortLivedTable();
    7070
    71    G4bool                IsShortLived(G4ParticleDefinition*) const;
     71   G4bool                IsShortLived(const G4ParticleDefinition*) const;
    7272   // return true if the particle is shortlived particle
    7373 
     
    8181   // return true if the list contains the specified particle
    8282
    83    void                  Insert(G4ParticleDefinition* particle);
     83   void                  Insert(const G4ParticleDefinition* particle);
    8484   // add the particle in the list
    8585
    86    void                  Remove(G4ParticleDefinition* particle);
     86   void                  Remove(const G4ParticleDefinition* particle);
    8787   // remove the particle (not delete) from the list
    8888
     
    132132{
    133133  if ( (index >=0 ) && (index < Entries()) ) {
    134     return (*fShortLivedList)[index];
     134    return const_cast<G4ParticleDefinition*>( (*fShortLivedList)[index] );
    135135  } else {
    136136    return 0;
Note: See TracChangeset for help on using the changeset viewer.