#include <G4OrderedTable.hh>
Definition at line 57 of file G4OrderedTable.hh.
G4OrderedTable::G4OrderedTable |
( |
| ) |
|
G4OrderedTable::G4OrderedTable |
( |
size_t |
cap | ) |
|
|
explicit |
G4OrderedTable::~G4OrderedTable |
( |
| ) |
|
|
virtual |
void G4OrderedTable::clearAndDestroy |
( |
| ) |
|
|
inline |
Definition at line 90 of file G4OrderedTable.hh.
97 for (iterator i=begin(); i!=end(); i++)
105 if ( a ) {
delete a; }
Definition at line 110 of file G4OrderedTable.cc.
116 { fIn.open(fileName,std::ios::in|std::ios::binary); }
118 { fIn.open(fileName,std::ios::in); }
124 G4cerr <<
"G4OrderedTable::Retrieve():";
138 fIn.read((
char*)(&tableSize),
sizeof tableSize);
147 G4cerr <<
"G4OrderedTable::Retrieve():";
148 G4cerr <<
" Invalid table size: " << tableSize <<
G4endl;
155 for (
G4int idx=0; idx<tableSize; ++idx)
160 fIn.read( (
char*)(&vType),
sizeof vType);
169 G4cerr <<
"G4OrderedTable::Retrieve():";
170 G4cerr <<
" Illegal Data Vector type: " << vType <<
" in ";
182 G4cerr <<
"G4OrderedTable::Retrieve(): ";
183 G4cerr <<
" Rrror in retreiving " << idx
184 <<
"-th Physics Vector from file: ";
G4bool Retrieve(std::ifstream &fIn, G4bool ascii=false)
G4GLOB_DLL std::ostream G4cerr
Definition at line 57 of file G4OrderedTable.cc.
64 { fOut.open(fileName, std::ios::out|std::ios::binary); }
66 { fOut.open(fileName, std::ios::out); }
72 G4cerr <<
"G4OrderedTable::::Store():";
80 size_t tableSize = size();
83 fOut.write( (
char*)(&tableSize),
sizeof tableSize);
87 fOut << tableSize <<
G4endl;
96 fOut.write( (
char*)(&vType),
sizeof vType);
102 (*itr)->Store(fOut,ascii);
G4OrderedTable::iterator G4OrderedTableIterator
G4GLOB_DLL std::ostream G4cerr
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
G4OrderedTable & |
table |
|
) |
| |
|
friend |
Definition at line 199 of file G4OrderedTable.cc.
206 out << std::setw(8) << i <<
"-th Vector ";
G4OrderedTable::iterator G4OrderedTableIterator
The documentation for this class was generated from the following files: