Import Geant4 3.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:10:37 +02:00
parent 137e303ecc
commit 36c080dca6
3464 changed files with 119310 additions and 52696 deletions
@@ -1,12 +1,28 @@
// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4ProcessVector.icc,v 1.1 2000/11/03 03:44:52 kurasige Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
// $Id: G4ProcessVector.icc,v 1.2.2.1 2001/06/28 19:15:06 gunter Exp $
// GEANT4 tag $Name: $
//
inline G4bool G4ProcessVector::operator==(const G4ProcessVector &right) const
{
@@ -50,8 +66,8 @@ inline G4bool G4ProcessVector::insert(G4VProcess* aProcess)
inline G4bool G4ProcessVector::insertAt(G4int i,G4VProcess* aProcess)
{
if ( (i<0) || (i>pProcVector->size()) ) return false;
if (i==pProcVector->size()) {
if ( (i<0) || (i>G4int(pProcVector->size())) ) return false;
if (i==G4int(pProcVector->size())) {
pProcVector->push_back(aProcess);
} else {
G4ProcVector::iterator it=pProcVector->begin();
@@ -65,8 +81,7 @@ inline G4bool G4ProcessVector::insertAt(G4int i,G4VProcess* aProcess)
inline G4VProcess* G4ProcessVector::removeAt(G4int i)
{
G4ProcVector::iterator it=pProcVector->begin();
int j;
for(j=0;j<pProcVector->size() && j<i;++j) it++;
for(size_t j=0;j<pProcVector->size() && G4int(j)<i;++j) it++;
G4VProcess* rValue = *it;
pProcVector->erase(it);
return rValue;