Geant4-11
Public Member Functions | Protected Attributes | Friends
G4ProcessAttribute Class Reference

#include <G4ProcessAttribute.hh>

Public Member Functions

 G4ProcessAttribute ()
 
 G4ProcessAttribute (const G4ProcessAttribute &right)
 
 G4ProcessAttribute (const G4VProcess *aProcess)
 
G4bool operator!= (const G4ProcessAttribute &right) const
 
G4ProcessAttributeoperator= (const G4ProcessAttribute &right)
 
G4bool operator== (const G4ProcessAttribute &right) const
 
 ~G4ProcessAttribute ()
 

Protected Attributes

G4int idxProcessList = -1
 
G4int idxProcVector [G4ProcessManager::SizeOfProcVectorArray]
 
G4bool isActive = true
 
G4int ordProcVector [G4ProcessManager::SizeOfProcVectorArray]
 
G4VProcesspProcess = nullptr
 

Friends

class G4ProcessManager
 

Detailed Description

Definition at line 44 of file G4ProcessAttribute.hh.

Constructor & Destructor Documentation

◆ G4ProcessAttribute() [1/3]

G4ProcessAttribute::G4ProcessAttribute ( )

Definition at line 36 of file G4ProcessAttribute.cc.

37{
38 for (std::size_t idx=0; idx<G4ProcessManager::SizeOfProcVectorArray; ++idx)
39 {
40 idxProcVector[idx] = -1;
41 ordProcVector[idx] = -1;
42 }
43}
G4int ordProcVector[G4ProcessManager::SizeOfProcVectorArray]
G4int idxProcVector[G4ProcessManager::SizeOfProcVectorArray]

References idxProcVector, ordProcVector, and G4ProcessManager::SizeOfProcVectorArray.

◆ G4ProcessAttribute() [2/3]

G4ProcessAttribute::G4ProcessAttribute ( const G4VProcess aProcess)

Definition at line 46 of file G4ProcessAttribute.cc.

47 : pProcess((G4VProcess*)aProcess)
48{
49 for(std::size_t idx=0; idx<G4ProcessManager::SizeOfProcVectorArray; ++idx)
50 {
51 idxProcVector[idx] = -1;
52 ordProcVector[idx] = 0;
53 }
54}

References idxProcVector, ordProcVector, and G4ProcessManager::SizeOfProcVectorArray.

◆ G4ProcessAttribute() [3/3]

G4ProcessAttribute::G4ProcessAttribute ( const G4ProcessAttribute right)

Definition at line 59 of file G4ProcessAttribute.cc.

60 : pProcess(right.pProcess),
61 isActive(right.isActive),
63{
64 // copy all contents in idxProcVector[] and ordProcVector[]; deep copy
65 //
66 for (std::size_t idx=0; idx<G4ProcessManager::SizeOfProcVectorArray; ++idx)
67 {
68 idxProcVector[idx] = right.idxProcVector[idx];
69 ordProcVector[idx] = right.ordProcVector[idx];
70 }
71}

References idxProcVector, ordProcVector, and G4ProcessManager::SizeOfProcVectorArray.

◆ ~G4ProcessAttribute()

G4ProcessAttribute::~G4ProcessAttribute ( )

Definition at line 76 of file G4ProcessAttribute.cc.

77{
78 // do nothing
79}

Member Function Documentation

◆ operator!=()

G4bool G4ProcessAttribute::operator!= ( const G4ProcessAttribute right) const
inline

Definition at line 95 of file G4ProcessAttribute.hh.

96{
97 return this->pProcess != right.pProcess;
98}

References pProcess.

◆ operator=()

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

Definition at line 85 of file G4ProcessAttribute.cc.

86{
87 if (this != &right)
88 {
89 pProcess = right.pProcess;
91 isActive = right.isActive;
92
93 // copy all contents in idxProcVector[] and ordProcVector[]; deep copy
94 //
95 for (std::size_t idx=0; idx<G4ProcessManager::SizeOfProcVectorArray; ++idx)
96 {
97 idxProcVector[idx] = right.idxProcVector[idx];
98 ordProcVector[idx] = right.ordProcVector[idx];
99 }
100 }
101 return *this;
102}

References idxProcessList, idxProcVector, isActive, ordProcVector, pProcess, and G4ProcessManager::SizeOfProcVectorArray.

◆ operator==()

G4bool G4ProcessAttribute::operator== ( const G4ProcessAttribute right) const
inline

Definition at line 89 of file G4ProcessAttribute.hh.

90{
91 return this->pProcess == right.pProcess;
92}

References pProcess.

Friends And Related Function Documentation

◆ G4ProcessManager

friend class G4ProcessManager
friend

Definition at line 46 of file G4ProcessAttribute.hh.

Field Documentation

◆ idxProcessList

G4int G4ProcessAttribute::idxProcessList = -1
protected

◆ idxProcVector

G4int G4ProcessAttribute::idxProcVector[G4ProcessManager::SizeOfProcVectorArray]
protected

◆ isActive

G4bool G4ProcessAttribute::isActive = true
protected

◆ ordProcVector

G4int G4ProcessAttribute::ordProcVector[G4ProcessManager::SizeOfProcVectorArray]
protected

◆ pProcess

G4VProcess* G4ProcessAttribute::pProcess = nullptr
protected

Definition at line 67 of file G4ProcessAttribute.hh.

Referenced by operator!=(), operator=(), and operator==().


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