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

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 199 of file G4OrderedTable.cc.

201{
202 // Printout Data Vector
203 size_t i=0;
204 for (G4OrderedTableIterator itr=right.begin(); itr!=right.end(); ++itr)
205 {
206 out << std::setw(8) << i << "-th Vector ";
207 out << ": Type " << G4DataVector::T_G4DataVector << G4endl;
208 out << *(*itr);
209 i +=1;
210 }
211 out << G4endl;
212 return out;
213}
G4OrderedTable::iterator G4OrderedTableIterator
#define G4endl
Definition: G4ios.hh:52