Geant4 10.7.0
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 222 of file G4OrderedTable.cc.

223{
224 // Printout Data Vector
225 std::size_t i = 0;
226 for(auto itr = right.cbegin(); itr != right.cend(); ++itr)
227 {
228 out << std::setw(8) << i << "-th Vector ";
229 out << ": Type " << G4DataVector::T_G4DataVector << G4endl;
230 out << *(*itr);
231 i += 1;
232 }
233 out << G4endl;
234 return out;
235}
#define G4endl
Definition: G4ios.hh:57