Import Geant4 4.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:18:25 +02:00
parent 36c080dca6
commit 921d3b1cda
3990 changed files with 185376 additions and 82884 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4DataVector.hh,v 1.8.2.1 2001/06/28 19:10:02 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4DataVector.hh,v 1.10 2001/09/17 08:17:56 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -41,6 +41,9 @@
#include "globals.hh"
#include "g4std/vector"
#include "G4ios.hh"
#include "g4std/iostream"
#include "g4std/fstream"
class G4DataVector : public G4std::vector<G4double>
{
@@ -74,6 +77,14 @@ class G4DataVector : public G4std::vector<G4double>
inline size_t removeAll(const G4double&);
// Remove all elements same as given value
enum {T_G4DataVector = 100};
G4bool Store(G4std::ofstream& fOut, G4bool ascii=false);
G4bool Retrieve(G4std::ifstream& fIn, G4bool ascii=false);
// To store/retrieve persistent data to/from file streams.
friend G4std::ostream& operator<<(G4std::ostream&, const G4DataVector&);
};
inline
@@ -155,3 +166,7 @@ size_t G4DataVector::removeAll(const G4double& a)
}
#endif