Geant4 9.6.0
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)
 
G4int operator== (const G4ProcTblElement &right) const
 
G4int operator!= (const G4ProcTblElement &right) const
 

Protected Types

typedef std::vector< G4ProcessManager * > G4ProcMgrVector
 

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 G4ProcMgrVectorGetProcMgrVector () const
 
G4int GetIndex (const G4ProcessManager *pManager) const
 
G4bool Contains (const G4ProcessManager *pManager) const
 

Friends

class G4ProcessTable
 

Detailed Description

Definition at line 53 of file G4ProcTblElement.hh.

Member Typedef Documentation

◆ G4ProcMgrVector

typedef std::vector<G4ProcessManager*> G4ProcTblElement::G4ProcMgrVector
protected

Definition at line 77 of file G4ProcTblElement.hh.

Constructor & Destructor Documentation

◆ G4ProcTblElement() [1/3]

G4ProcTblElement::G4ProcTblElement ( )
protected

Definition at line 42 of file G4ProcTblElement.cc.

43 :pProcess(0),pProcMgrVector(0)
44{
45}

◆ G4ProcTblElement() [2/3]

G4ProcTblElement::G4ProcTblElement ( const G4ProcTblElement right)

Definition at line 55 of file G4ProcTblElement.cc.

56 :pProcess(0),pProcMgrVector(0)
57{
58 *this = right;
59}

◆ G4ProcTblElement() [3/3]

G4ProcTblElement::G4ProcTblElement ( G4VProcess aProcess)

Definition at line 48 of file G4ProcTblElement.cc.

48 :
49 pProcess(aProcess)
50{
51 pProcMgrVector = new G4ProcMgrVector();
52}
std::vector< G4ProcessManager * > G4ProcMgrVector

◆ ~G4ProcTblElement()

G4ProcTblElement::~G4ProcTblElement ( )

Definition at line 63 of file G4ProcTblElement.cc.

64{
65 if (pProcMgrVector != 0) {
66 pProcMgrVector->clear();
67 delete pProcMgrVector;
68 }
69}

Member Function Documentation

◆ Contains()

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

◆ GetIndex()

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

◆ GetProcess()

◆ GetProcessManager()

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

◆ GetProcessName()

const G4String & G4ProcTblElement::GetProcessName ( ) const
protected

◆ GetProcMgrVector()

const G4ProcMgrVector * G4ProcTblElement::GetProcMgrVector ( ) const
inlineprotected

Definition at line 89 of file G4ProcTblElement.hh.

90 { return pProcMgrVector;}

◆ Insert()

void G4ProcTblElement::Insert ( G4ProcessManager aProcMgr)
protected

Referenced by G4ProcessTable::Insert().

◆ Length()

G4int G4ProcTblElement::Length ( ) const
protected

◆ operator!=()

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

Definition at line 100 of file G4ProcTblElement.cc.

101{
102 return (this != &right);
103}

◆ operator=()

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

Definition at line 73 of file G4ProcTblElement.cc.

74{
75 if (this != &right) {
76 pProcess = right.pProcess;
77 // copy all contents in pProcMgrVector
78 if (pProcMgrVector != 0) {
79 pProcMgrVector->clear();
80 delete pProcMgrVector;
81 }
82 pProcMgrVector = new G4ProcMgrVector();
83 G4ProcMgrVector::iterator i;
84 for (i = right.pProcMgrVector->begin(); i!= right.pProcMgrVector->end(); ++i) {
85 pProcMgrVector->push_back(*i);
86 }
87 }
88 return *this;
89}

◆ operator==()

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

Definition at line 93 of file G4ProcTblElement.cc.

94{
95 return (this == &right);
96}

◆ Remove()

void G4ProcTblElement::Remove ( G4ProcessManager aProcMgr)
protected

Referenced by G4ProcessTable::Remove().

Friends And Related Function Documentation

◆ G4ProcessTable

friend class G4ProcessTable
friend

Definition at line 56 of file G4ProcTblElement.hh.


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