45 : theSizeOfOrbit(sizeOrbit)
53 theOccupancies =
new G4int[theSizeOfOrbit];
55 for (index = 0; index < theSizeOfOrbit; index++) {
56 theOccupancies[
index] =0;
66 delete [] theOccupancies;
73 theSizeOfOrbit = right.theSizeOfOrbit;
76 theOccupancies =
new G4int[theSizeOfOrbit];
78 for (index = 0; index < theSizeOfOrbit; index++) {
79 theOccupancies[
index] = right.theOccupancies[
index];
82 theTotalOccupancy = right.theTotalOccupancy;
87 if (
this != &right) {
88 theSizeOfOrbit = right.theSizeOfOrbit;
91 if ( theOccupancies != 0 )
delete [] theOccupancies;
92 theOccupancies =
new G4int[theSizeOfOrbit];
94 for (index = 0; index < theSizeOfOrbit; index++) {
95 theOccupancies[
index] = right.theOccupancies[
index];
98 theTotalOccupancy = right.theTotalOccupancy;
108 if ( (index < theSizeOfOrbit ) && ( index < right.theSizeOfOrbit) ) {
110 (theOccupancies[
index] == right.theOccupancies[
index]) ;
111 }
else if ((index < theSizeOfOrbit ) && ( index >= right.theSizeOfOrbit)) {
112 value = value && (theOccupancies[
index] == 0);
113 }
else if ((index >= theSizeOfOrbit ) && ( index <right.theSizeOfOrbit)) {
114 value = value && (right.theOccupancies[
index] == 0);
122 return !(*
this ==
right);
129 for (index = 0; index < theSizeOfOrbit; index++) {
130 G4cout <<
" " << index <<
"-th orbit "
virtual ~G4ElectronOccupancy()
G4ElectronOccupancy(G4int sizeOrbit=MaxSizeOfOrbit)
G4int operator==(const G4ElectronOccupancy &right) const
G4GLOB_DLL std::ostream G4cout
G4PART_DLL G4ThreadLocal G4Allocator< G4ElectronOccupancy > * aElectronOccupancyAllocator
G4int operator!=(const G4ElectronOccupancy &right) const
const XML_Char int const XML_Char * value
G4ElectronOccupancy & operator=(const G4ElectronOccupancy &right)