Geant4 Cross Reference |
>> 1 // This code implementation is the intellectual property of >> 2 // the GEANT4 collaboration. >> 3 // >> 4 // By copying, distributing or modifying the Program (or any work >> 5 // based on the Program) you indicate your acceptance of this statement, >> 6 // and all its terms. >> 7 // >> 8 // $Id: G4ProcTblElement.hh,v 1.7 2000/03/02 01:45:10 kurasige Exp $ >> 9 // GEANT4 tag $Name: geant4-02-00 $ >> 10 // >> 11 // >> 12 // ------------------------------------------------------------ >> 13 // GEANT 4 class header file >> 14 // >> 15 // For information related to this code contact: >> 16 // CERN, IT Division, ASD group >> 17 // History: first implementation, based on object model of >> 18 // 4th Aug 1998, H.Kurashige >> 19 // ------------------------------------------------------------ >> 20 // Use STL vector instead of RW vector 1. Mar 00 H.Kurashige >> 21 // >> 22 // Class Description >> 23 // This class is used by G4ProcessTable ONLY for booking !!! 1 // 24 // 2 // ******************************************* << 3 // * License and Disclaimer << 4 // * << 5 // * The Geant4 software is copyright of th << 6 // * the Geant4 Collaboration. It is provided << 7 // * conditions of the Geant4 Software License << 8 // * LICENSE and available at http://cern.ch/ << 9 // * include a list of copyright holders. << 10 // * << 11 // * Neither the authors of this software syst << 12 // * institutes,nor the agencies providing fin << 13 // * work make any representation or warran << 14 // * regarding this software system or assum << 15 // * use. Please see the license in the file << 16 // * for the full disclaimer and the limitatio << 17 // * << 18 // * This code implementation is the result << 19 // * technical work of the GEANT4 collaboratio << 20 // * By using, copying, modifying or distri << 21 // * any work based on the software) you ag << 22 // * use in resulting scientific publicati << 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* << 25 // << 26 // G4ProcTblElement << 27 // << 28 // Class description: << 29 // << 30 // This class is exclusively used by G4Process << 31 << 32 // Author: H.Kurashige, 4 August 1998 << 33 // ------------------------------------------- << 34 #ifndef G4ProcTblElement_hh << 35 #define G4ProcTblElement_hh 1 << 36 25 37 #include <vector> << 26 #ifndef G4ProcTblElement_h >> 27 #define G4ProcTblElement_h 1 38 28 39 #include "globals.hh" 29 #include "globals.hh" 40 #include "G4ios.hh" 30 #include "G4ios.hh" >> 31 #include "g4std/vector" 41 32 42 #include "G4ParticleDefinition.hh" 33 #include "G4ParticleDefinition.hh" 43 #include "G4VProcess.hh" 34 #include "G4VProcess.hh" 44 #include "G4ProcessManager.hh" 35 #include "G4ProcessManager.hh" 45 36 46 class G4ProcTblElement 37 class G4ProcTblElement 47 { 38 { >> 39 // this class is used by G4ProcessTable ONLY for booking !!! 48 friend class G4ProcessTable; 40 friend class G4ProcessTable; 49 << 41 protected: 50 using G4ProcMgrVector = std::vector<G4Proces << 42 G4ProcTblElement(); 51 43 52 public: 44 public: 53 << 54 G4ProcTblElement(const G4ProcTblElement& r 45 G4ProcTblElement(const G4ProcTblElement& right); 55 G4ProcTblElement(G4VProcess* aProcess); 46 G4ProcTblElement(G4VProcess* aProcess); 56 // Constructors << 47 // Constructors 57 48 58 ~G4ProcTblElement(); 49 ~G4ProcTblElement(); 59 // Destructor << 50 // Destructor 60 51 61 G4ProcTblElement& operator=(const G4ProcTb << 52 G4ProcTblElement & operator=(G4ProcTblElement &right); 62 // Assignment operator << 53 // Assignment operator 63 54 64 G4bool operator==(const G4ProcTblElement& << 55 G4int operator==(const G4ProcTblElement &right) const; 65 G4bool operator!=(const G4ProcTblElement& << 56 G4int operator!=(const G4ProcTblElement &right) const; 66 // Equality operators << 57 // equal / unequal operator 67 58 68 protected: 59 protected: >> 60 // Use STL Vector >> 61 typedef G4std::vector<G4ProcessManager*> G4ProcMgrVector; 69 62 70 G4ProcTblElement(); << 63 G4int Length() const ; 71 << 64 void Insert(G4ProcessManager* aProcMgr); 72 inline G4int Length() const ; << 65 void Remove(G4ProcessManager* aProcMgr); 73 inline void Insert(G4ProcessManager* aProc << 66 74 inline void Remove(G4ProcessManager* aProc << 67 G4VProcess* GetProcess() const; 75 << 68 const G4String& GetProcessName() const; 76 inline G4VProcess* GetProcess() cons << 69 77 inline const G4String& GetProcessName() << 70 G4ProcessManager* GetProcessManager(G4int index) const; 78 inline G4ProcessManager* GetProcessManager << 71 79 << 72 inline 80 inline const G4ProcMgrVector* GetProcMgrVe << 73 const G4ProcMgrVector* GetProcMgrVector() const >> 74 { return pProcMgrVector;} 81 75 82 inline G4int GetIndex(const G4ProcessMana << 76 G4int GetIndex(const G4ProcessManager* pManager) const ; 83 inline G4bool Contains(const G4ProcessMana << 77 G4bool Contains(const G4ProcessManager* pManager) const ; 84 78 85 private: 79 private: >> 80 G4VProcess* pProcess; >> 81 // pointer to G4VProcess 86 82 87 G4VProcess* pProcess = nullptr; << 83 G4ProcMgrVector* pProcMgrVector; 88 G4ProcMgrVector* pProcMgrVector = nullptr; << 89 }; 84 }; 90 85 91 #include "G4ProcTblElement.icc" 86 #include "G4ProcTblElement.icc" 92 << 93 #endif 87 #endif >> 88 >> 89 >> 90 >> 91 94 92