Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4OrderedTable.cc File Reference
#include "G4OrderedTable.hh"
#include "G4DataVector.hh"
#include <fstream>
#include <iomanip>
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, G4OrderedTable &right)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & out,
G4OrderedTable & right )

Definition at line 212 of file G4OrderedTable.cc.

213{
214 // Printout Data Vector
215 std::size_t i = 0;
216 for(const auto itr : right)
217 {
218 out << std::setw(8) << i << "-th Vector ";
219 out << ": Type " << G4DataVector::T_G4DataVector << G4endl;
220 out << *itr;
221 i += 1;
222 }
223 out << G4endl;
224 return out;
225}
#define G4endl
Definition G4ios.hh:67