Geant4-11
Public Member Functions | Protected Member Functions | Private Types | Private Attributes | Friends
G4ProcTblElement Class Reference

#include <G4ProcTblElement.hh>

Public Member Functions

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

Protected Member Functions

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

Private Types

using G4ProcMgrVector = std::vector< G4ProcessManager * >
 

Private Attributes

G4VProcesspProcess = nullptr
 
G4ProcMgrVectorpProcMgrVector = nullptr
 

Friends

class G4ProcessTable
 

Detailed Description

Definition at line 46 of file G4ProcTblElement.hh.

Member Typedef Documentation

◆ G4ProcMgrVector

using G4ProcTblElement::G4ProcMgrVector = std::vector<G4ProcessManager*>
private

Definition at line 50 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{
45}
std::vector< G4ProcessManager * > G4ProcMgrVector
G4VProcess * pProcess
G4ProcMgrVector * pProcMgrVector

References pProcMgrVector.

◆ ~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}

References pProcMgrVector.

◆ 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

Referenced by G4ProcessTable::Find().

◆ 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 }
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}

References pProcess, and pProcMgrVector.

◆ 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.

Field Documentation

◆ pProcess

G4VProcess* G4ProcTblElement::pProcess = nullptr
private

Definition at line 87 of file G4ProcTblElement.hh.

Referenced by operator=().

◆ pProcMgrVector

G4ProcMgrVector* G4ProcTblElement::pProcMgrVector = nullptr
private

Definition at line 88 of file G4ProcTblElement.hh.

Referenced by G4ProcTblElement(), operator=(), and ~G4ProcTblElement().


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