Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ProcTblElement Class Reference

#include <G4ProcTblElement.hh>

Public Member Functions

 G4ProcTblElement (const G4ProcTblElement &right)
 
 G4ProcTblElement (G4VProcess *aProcess)
 
 ~G4ProcTblElement ()
 
G4ProcTblElementoperator= (const G4ProcTblElement &right)
 
G4bool operator== (const G4ProcTblElement &right) const
 
G4bool operator!= (const G4ProcTblElement &right) const
 

Protected Member Functions

 G4ProcTblElement ()
 
G4int Length () const
 
void Insert (G4ProcessManager *aProcMgr)
 
void Remove (G4ProcessManager *aProcMgr)
 
G4VProcessGetProcess () const
 
const G4StringGetProcessName () const
 
G4ProcessManagerGetProcessManager (G4int index) const
 
const G4ProcMgrVector * GetProcMgrVector () const
 
G4int GetIndex (const G4ProcessManager *pManager) const
 
G4bool Contains (const G4ProcessManager *pManager) const
 

Friends

class G4ProcessTable
 

Detailed Description

Definition at line 46 of file G4ProcTblElement.hh.

Constructor & Destructor Documentation

◆ G4ProcTblElement() [1/3]

G4ProcTblElement::G4ProcTblElement ( const G4ProcTblElement right)

Definition at line 50 of file G4ProcTblElement.cc.

51{
52 *this = right;
53}

◆ G4ProcTblElement() [2/3]

G4ProcTblElement::G4ProcTblElement ( G4VProcess aProcess)

Definition at line 41 of file G4ProcTblElement.cc.

42 : pProcess(aProcess)
43{
44 pProcMgrVector = new G4ProcMgrVector();
45}

◆ ~G4ProcTblElement()

G4ProcTblElement::~G4ProcTblElement ( )

Definition at line 58 of file G4ProcTblElement.cc.

59{
60 if (pProcMgrVector != nullptr)
61 {
62 pProcMgrVector->clear();
63 delete pProcMgrVector;
64 }
65}

◆ G4ProcTblElement() [3/3]

G4ProcTblElement::G4ProcTblElement ( )
protected

Definition at line 36 of file G4ProcTblElement.cc.

37{
38}

Member Function Documentation

◆ Contains()

G4bool G4ProcTblElement::Contains ( const G4ProcessManager pManager) const
inlineprotected

◆ GetIndex()

G4int G4ProcTblElement::GetIndex ( const G4ProcessManager pManager) const
inlineprotected

◆ GetProcess()

G4VProcess * G4ProcTblElement::GetProcess ( ) const
inlineprotected

◆ GetProcessManager()

G4ProcessManager * G4ProcTblElement::GetProcessManager ( G4int  index) const
inlineprotected

◆ GetProcessName()

const G4String & G4ProcTblElement::GetProcessName ( ) const
inlineprotected

◆ GetProcMgrVector()

const G4ProcMgrVector * G4ProcTblElement::GetProcMgrVector ( ) const
inlineprotected

◆ Insert()

void G4ProcTblElement::Insert ( G4ProcessManager aProcMgr)
inlineprotected

Referenced by G4ProcessTable::Insert().

◆ Length()

G4int G4ProcTblElement::Length ( ) const
inlineprotected

◆ operator!=()

G4bool G4ProcTblElement::operator!= ( const G4ProcTblElement right) const

Definition at line 97 of file G4ProcTblElement.cc.

98{
99 return (this != &right);
100}

◆ operator=()

G4ProcTblElement & G4ProcTblElement::operator= ( const G4ProcTblElement right)

Definition at line 68 of file G4ProcTblElement.cc.

69{
70 if (this != &right)
71 {
72 pProcess = right.pProcess;
73
74 // copy all contents in pProcMgrVector
75 if (pProcMgrVector != nullptr)
76 {
77 pProcMgrVector->clear();
78 delete pProcMgrVector;
79 }
80 pProcMgrVector = new G4ProcMgrVector();
81 for (auto i = right.pProcMgrVector->cbegin();
82 i!= right.pProcMgrVector->cend(); ++i)
83 {
84 pProcMgrVector->push_back(*i);
85 }
86 }
87 return *this;
88}

◆ operator==()

G4bool G4ProcTblElement::operator== ( const G4ProcTblElement right) const

Definition at line 91 of file G4ProcTblElement.cc.

92{
93 return (this == &right);
94}

◆ Remove()

void G4ProcTblElement::Remove ( G4ProcessManager aProcMgr)
inlineprotected

Referenced by G4ProcessTable::Remove().

Friends And Related Function Documentation

◆ G4ProcessTable

friend class G4ProcessTable
friend

Definition at line 48 of file G4ProcTblElement.hh.


The documentation for this class was generated from the following files: