41#ifndef G4ElectronOccupancy_hh
42#define G4ElectronOccupancy_hh 1
64 inline void*
operator new(size_t);
65 inline void operator delete(
void* aElectronOccupancy);
84 G4int theSizeOfOrbit = 0;
85 G4int theTotalOccupancy = 0;
86 G4int* theOccupancies =
nullptr;
95inline void* G4ElectronOccupancy::operator
new(size_t)
103inline void G4ElectronOccupancy::operator
delete(
void* aElectronOccupancy)
110 return theSizeOfOrbit;
115 return theTotalOccupancy;
121 if ((orbit >= 0) && (orbit < theSizeOfOrbit)) {
122 value = theOccupancies[orbit];
G4PART_DLL G4Allocator< G4ElectronOccupancy > *& aElectronOccupancyAllocator()
G4int GetTotalOccupancy() const
G4bool operator!=(const G4ElectronOccupancy &right) const
G4int AddElectron(G4int orbit, G4int number=1)
G4int RemoveElectron(G4int orbit, G4int number=1)
G4int GetOccupancy(G4int orbit) const
G4bool operator==(const G4ElectronOccupancy &right) const
G4ElectronOccupancy(G4int sizeOrbit=MaxSizeOfOrbit)
G4int GetSizeOfOrbit() const
virtual ~G4ElectronOccupancy()
G4ElectronOccupancy & operator=(const G4ElectronOccupancy &right)