#include "globals.hh"
#include "G4TypeKey.hh"
#include <map>
Go to the source code of this file.
◆ operator<<() [1/2]
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const std::map< G4String, G4AttDef > & |
definitions |
|
) |
| |
Definition at line 47 of file G4AttDef.cc.
49{
52 os << storeKey << ":";
53 }
54 std::map<G4String,G4AttDef>::const_iterator i;
55 for (i = definitions.begin(); i != definitions.end(); ++i) {
60 <<
" (" <<
name <<
"): ";
62 if (attDef.
GetExtra() !=
"G4BestUnit") os <<
"unit: ";
64 }
66 if (!attDef.
GetExtra().empty()) os <<
")";
67 }
68 }
69 os << endl;
70 return os;
71}
const G4String & GetCategory() const
const G4String & GetExtra() const
const G4String & GetDesc() const
const G4String & GetValueType() const
G4bool GetStoreKey(const std::map< G4String, G4AttDef > *definitions, G4String &key)
const char * name(G4int ptype)
◆ operator<<() [2/2]
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const std::map< G4String, G4AttDef > * |
definitions |
|
) |
| |
Definition at line 35 of file G4AttDef.cc.
37{
38 os << "G4AttDef: Deprecated output function. Use const reference instead." << endl;
39 if (definitions) {
40 os << *definitions;
41 } else {
42 os << "G4AttCheck: ERROR: zero definitions pointer." << endl;
43 }
44 return os;
45}