#include <G4FastSimulationVector.hh>
Public Member Functions | |
G4FastSimulationVector () | |
virtual | ~G4FastSimulationVector () |
T * | remove (const T *) |
T * | removeAt (G4int) |
void | clearAndDestroy () |
Definition at line 49 of file G4FastSimulationVector.hh.
G4FastSimulationVector< T >::G4FastSimulationVector | ( | ) | [inline] |
virtual G4FastSimulationVector< T >::~G4FastSimulationVector | ( | ) | [inline, virtual] |
void G4FastSimulationVector< T >::clearAndDestroy | ( | ) |
Definition at line 75 of file G4FastSimulationVector.icc.
00076 { 00077 for (iterator it = std_pvector::begin();it<std_pvector::end(); it++) 00078 if(*it) delete *it; 00079 std_pvector::clear(); 00080 }
T * G4FastSimulationVector< T >::remove | ( | const T * | ) |
Definition at line 44 of file G4FastSimulationVector.icc.
Referenced by G4GlobalFastSimulationManager::RemoveFastSimulationManager(), G4FastSimulationManager::RemoveFastSimulationModel(), and G4GlobalFastSimulationManager::RemoveFSMP().
00045 { 00046 for (iterator it = std_pvector::begin();it<std_pvector::end(); it++) 00047 { 00048 if (**it==*a) 00049 { 00050 T* tmp=*it; 00051 std_pvector::erase(it); 00052 return tmp; 00053 } 00054 } 00055 return 0; 00056 }
T * G4FastSimulationVector< T >::removeAt | ( | G4int | ) |
Definition at line 59 of file G4FastSimulationVector.icc.
Referenced by G4FastSimulationManager::ActivateFastSimulationModel(), and G4FastSimulationManager::InActivateFastSimulationModel().
00060 { 00061 iterator it=std_pvector::begin(); 00062 int j; 00063 for(j=0;j<i;j++) it++; 00064 if(it!=std_pvector::end()) 00065 { 00066 T* tmp = std_pvector::operator[](i); 00067 std_pvector::erase(it); 00068 return tmp; 00069 } 00070 else 00071 return 0; 00072 }