64 fOut.write((
char*) (&sizeV),
sizeof sizeV);
68 for(
auto itr = cbegin(); itr != cend(); ++itr, ++i)
72 fOut.write((
char*) (value), sizeV * (
sizeof(
G4double)));
96 G4cerr <<
"G4DataVector::Retrieve():";
103 for(
G4int i = 0; i < sizeV; ++i)
117 fIn.read((
char*) (&sizeV),
sizeof sizeV);
120 fIn.read((
char*) (value), sizeV * (
sizeof(
G4double)));
128 for(
G4int i = 0; i < sizeV; ++i)
139 out << pv.size() << std::setprecision(12) <<
G4endl;
140 for(std::size_t i = 0; i < pv.size(); ++i)
144 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)