typedef G4std::map<G4String, G4int, G4std::less<G4String> >
:: iterator IntMapIterator;
+//_____________________________________________________________________________
TG4IntMap::TG4IntMap(){
//
}
+//_____________________________________________________________________________
TG4IntMap::TG4IntMap(const TG4IntMap& right) {
//
TG4Globals::Exception("TG4IntMap is protected from copying.");
}
+//_____________________________________________________________________________
TG4IntMap::~TG4IntMap() {
//
}
// operators
+//_____________________________________________________________________________
TG4IntMap& TG4IntMap::operator=(const TG4IntMap& right)
{
// check assignement to self
// private methods
+//_____________________________________________________________________________
G4bool TG4IntMap::IsDefined(const G4String& first)
{
// Returns true if the first is already in the map.
// public methods
+//_____________________________________________________________________________
G4bool TG4IntMap::Add(const G4String& first, G4int second)
{
// Adds pair (name, int number) to the map.
return false;
}
+//_____________________________________________________________________________
G4int TG4IntMap::GetSecond(const G4String& name)
{
// Gets second name associated with given name.
IntMapIterator i = fMap.find(name);
if (i == fMap.end()) {
- G4String text = "G4IntMap::GetSecond: ";
+ G4String text = " TG4IntMap::GetSecond: ";
text = text + name + " is not defined.";
TG4Globals::Warning(text);
return 0;
}
}
+//_____________________________________________________________________________
void TG4IntMap::PrintAll()
{
// Dumps all map.
}
}
-
+//_____________________________________________________________________________
void TG4IntMap::Clear()
{
// Clears the map.