56 fOut.write((
char*) (&sizeV),
sizeof sizeV);
60 for(
auto itr = cbegin(); itr != cend(); ++itr, ++i)
64 fOut.write((
char*) (value), sizeV * (
sizeof(
G4double)));
88 G4cerr <<
"G4DataVector::Retrieve():";
95 for(
G4int i = 0; i < sizeV; ++i)
109 fIn.read((
char*) (&sizeV),
sizeof sizeV);
112 fIn.read((
char*) (value), sizeV * (
sizeof(
G4double)));
120 for(
G4int i = 0; i < sizeV; ++i)
131 out << pv.size() << std::setprecision(12) <<
G4endl;
132 for(std::size_t i = 0; i < pv.size(); ++i)
136 out << std::setprecision(6);
std::ostream & operator<<(std::ostream &out, const G4DataVector &pv)
G4GLOB_DLL std::ostream G4cerr
G4bool Store(std::ofstream &fOut, G4bool ascii=false)
G4bool Retrieve(std::ifstream &fIn, G4bool ascii=false)