- Timestamp:
- Jan 5, 2011, 12:19:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/include/G4VisListManager.hh
r1346 r1348 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VisListManager.hh,v 1. 8 2006/06/29 21:29:04 gunterExp $26 // $Id: G4VisListManager.hh,v 1.9 2010/12/11 17:01:25 allison Exp $ 27 27 // GEANT4 tag $Name: $ 28 28 // … … 94 94 assert (0 != ptr); 95 95 96 typename std::map<G4String, T*>::const_iterator iter = fMap.find(ptr->Name()); 97 98 if (iter == fMap.end()) { 99 fMap[ptr->Name()] = ptr; 100 fpCurrent = ptr; 101 } 102 else { 103 std::ostringstream o; 104 o << "Key "<<ptr->Name()<<" already registered"; 105 G4Exception 106 ("G4VisListManager<T>::Register(T* ptr) ", 107 "KeyExists", FatalErrorInArgument, o.str().c_str()); 108 } 96 // Add to map. Replace if name the same. 97 fMap[ptr->Name()] = ptr; 98 fpCurrent = ptr; 109 99 } 110 100
Note: See TracChangeset
for help on using the changeset viewer.