G4FastSimulationVector< T > Class Template Reference

#include <G4FastSimulationVector.hh>


Public Member Functions

 G4FastSimulationVector ()
virtual ~G4FastSimulationVector ()
T * remove (const T *)
T * removeAt (G4int)
void clearAndDestroy ()


Detailed Description

template<class T>
class G4FastSimulationVector< T >

Definition at line 49 of file G4FastSimulationVector.hh.


Constructor & Destructor Documentation

template<class T>
G4FastSimulationVector< T >::G4FastSimulationVector (  )  [inline]

Definition at line 57 of file G4FastSimulationVector.hh.

00057 {};

template<class T>
virtual G4FastSimulationVector< T >::~G4FastSimulationVector (  )  [inline, virtual]

Definition at line 60 of file G4FastSimulationVector.hh.

00060 {};


Member Function Documentation

template<class T>
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 }

template<class T>
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 }

template<class T>
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 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:58 2013 for Geant4 by  doxygen 1.4.7