#include <G4DataVector.hh>
Definition at line 50 of file G4DataVector.hh.
G4DataVector::G4DataVector |
( |
| ) |
|
G4DataVector::G4DataVector |
( |
size_t |
cap | ) |
|
|
explicit |
G4DataVector::G4DataVector |
( |
size_t |
cap, |
|
|
G4double |
value |
|
) |
| |
Definition at line 52 of file G4DataVector.cc.
53 : std::vector<G4double>(cap,
value)
const XML_Char int const XML_Char * value
G4DataVector::~G4DataVector |
( |
| ) |
|
|
virtual |
size_t G4DataVector::index |
( |
const G4double & |
| ) |
|
|
inline |
size_t G4DataVector::removeAll |
( |
const G4double & |
| ) |
|
|
inline |
G4bool G4DataVector::Retrieve |
( |
std::ifstream & |
fIn, |
|
|
G4bool |
ascii = false |
|
) |
| |
Definition at line 86 of file G4DataVector.cc.
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++)
const XML_Char int const XML_Char * value
G4GLOB_DLL std::ostream G4cerr
G4bool G4DataVector::Store |
( |
std::ofstream & |
fOut, |
|
|
G4bool |
ascii = false |
|
) |
| |
Definition at line 61 of file G4DataVector.cc.
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)) );
const XML_Char int const XML_Char * value
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const G4DataVector & |
pv |
|
) |
| |
|
friend |
Definition at line 137 of file G4DataVector.cc.
139 out << pv.size() << std::setprecision(12) <<
G4endl;
140 for(
size_t i = 0; i < pv.size(); i++)
144 out << std::setprecision(6);
The documentation for this class was generated from the following files: