Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ProcessAttribute Class Reference

#include <G4ProcessAttribute.hh>

Collaboration diagram for G4ProcessAttribute:

Public Member Functions

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

Protected Attributes

G4VProcesspProcess
 
G4bool isActive
 
G4int idxProcessList
 
G4int idxProcVector [G4ProcessManager::SizeOfProcVectorArray]
 
G4int ordProcVector [G4ProcessManager::SizeOfProcVectorArray]
 

Friends

class G4ProcessManager
 

Detailed Description

Definition at line 53 of file G4ProcessAttribute.hh.

Constructor & Destructor Documentation

G4ProcessAttribute::G4ProcessAttribute ( )

Definition at line 42 of file G4ProcessAttribute.cc.

42  :
43  isActive(true)
44 {
45  pProcess = 0;
46  idxProcessList = -1;
47  // clear
48  for (G4int idx=0; idx<G4ProcessManager::SizeOfProcVectorArray; idx++){
49  idxProcVector[idx] = -1;
50  ordProcVector[idx] = -1;
51  }
52 }
int G4int
Definition: G4Types.hh:78
G4int ordProcVector[G4ProcessManager::SizeOfProcVectorArray]
G4int idxProcVector[G4ProcessManager::SizeOfProcVectorArray]
G4ProcessAttribute::G4ProcessAttribute ( const G4VProcess aProcess)
inline

Definition at line 93 of file G4ProcessAttribute.hh.

93  :
94  pProcess((G4VProcess*)aProcess),
95  isActive(true),
96  idxProcessList(-1)
97 {
98  for(size_t ii=0; ii<G4ProcessManager::SizeOfProcVectorArray; ii++){
99  idxProcVector[ii]=-1;
100  ordProcVector[ii]=0;
101  }
102 }
G4int ordProcVector[G4ProcessManager::SizeOfProcVectorArray]
G4int idxProcVector[G4ProcessManager::SizeOfProcVectorArray]
G4ProcessAttribute::G4ProcessAttribute ( const G4ProcessAttribute right)

Definition at line 54 of file G4ProcessAttribute.cc.

55  :isActive(true)
56 {
57  pProcess = right.pProcess;
59  // copy all contents in idxProcVector[] and ordProcVector[]
60  // deep copy
61  for (G4int idx=0; idx<G4ProcessManager::SizeOfProcVectorArray; idx++){
62  idxProcVector[idx] = right.idxProcVector[idx];
63  ordProcVector[idx] = right.ordProcVector[idx];
64  }
65  isActive = right.isActive;
66 }
int G4int
Definition: G4Types.hh:78
G4int ordProcVector[G4ProcessManager::SizeOfProcVectorArray]
G4int idxProcVector[G4ProcessManager::SizeOfProcVectorArray]
G4ProcessAttribute::~G4ProcessAttribute ( )

Definition at line 68 of file G4ProcessAttribute.cc.

69 {
70  // do nothing
71 }

Member Function Documentation

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

Definition at line 111 of file G4ProcessAttribute.hh.

112 {
113  return this->pProcess != right.pProcess;
114 }
G4ProcessAttribute & G4ProcessAttribute::operator= ( const G4ProcessAttribute right)

Definition at line 73 of file G4ProcessAttribute.cc.

74 {
75  if (this != &right) {
76  pProcess = right.pProcess;
78  isActive = right.isActive;
79  // copy all contents in idxProcVector[] and ordProcVector[]
80  // deep copy
81  for (G4int idx=0; idx<G4ProcessManager::SizeOfProcVectorArray; idx++){
82  idxProcVector[idx] = right.idxProcVector[idx];
83  ordProcVector[idx] = right.ordProcVector[idx];
84  }
85  }
86  return *this;
87 }
int G4int
Definition: G4Types.hh:78
G4int ordProcVector[G4ProcessManager::SizeOfProcVectorArray]
G4int idxProcVector[G4ProcessManager::SizeOfProcVectorArray]
G4int G4ProcessAttribute::operator== ( const G4ProcessAttribute right) const
inline

Definition at line 105 of file G4ProcessAttribute.hh.

106 {
107  return this->pProcess == right.pProcess;
108 }

Friends And Related Function Documentation

friend class G4ProcessManager
friend

Definition at line 56 of file G4ProcessAttribute.hh.

Member Data Documentation

G4int G4ProcessAttribute::idxProcessList
protected

Definition at line 81 of file G4ProcessAttribute.hh.

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

Definition at line 84 of file G4ProcessAttribute.hh.

G4bool G4ProcessAttribute::isActive
protected

Definition at line 78 of file G4ProcessAttribute.hh.

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

Definition at line 88 of file G4ProcessAttribute.hh.

G4VProcess* G4ProcessAttribute::pProcess
protected

Definition at line 75 of file G4ProcessAttribute.hh.


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