71 size_t sizeV = size();
72 fOut.write((
char*)(&sizeV),
sizeof sizeV);
76 for (const_iterator itr=begin(); itr!=end(); itr++, i++)
80 fOut.write((
char*)(value), sizeV*(
sizeof (
G4double)) );
96 if (fIn.fail()) {
return false; }
100 G4cerr <<
"G4DataVector::Retrieve():";
107 for(
G4int i = 0; i < sizeV ; i++)
111 if (fIn.fail()) {
return false; }
118 fIn.read((
char*)(&sizeV),
sizeof sizeV);
121 fIn.read((
char*)(value), sizeV*(
sizeof(
G4double)) );
129 for(
G4int i = 0; i < sizeV; i++)
139 out << pv.size() << std::setprecision(12) <<
G4endl;
140 for(
size_t i = 0; i < pv.size(); i++)
144 out << std::setprecision(6);
G4bool Retrieve(std::ifstream &fIn, G4bool ascii=false)
G4bool Store(std::ofstream &fOut, G4bool ascii=false)
std::ostream & operator<<(std::ostream &out, const G4DataVector &pv)
G4GLOB_DLL std::ostream G4cerr