Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
G4DataVector.cc File Reference
#include "G4DataVector.hh"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const G4DataVector &pv)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const G4DataVector pv 
)

Definition at line 137 of file G4DataVector.cc.

References G4endl.

138 {
139  out << pv.size() << std::setprecision(12) << G4endl;
140  for(size_t i = 0; i < pv.size(); i++)
141  {
142  out << pv[i] << G4endl;
143  }
144  out << std::setprecision(6);
145 
146  return out;
147 }
#define G4endl
Definition: G4ios.hh:61