Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ITType.hh File Reference
#include <cstddef>

Go to the source code of this file.

Classes

struct  G4ITType
 
class  G4ITTypeManager
 

Macros

#define ITDef(T)
 
#define ITImp(T)   G4ITType T::fType = G4ITTypeManager::Instance()->NewType();
 

Functions

G4ITType operator+ (const G4ITType &left, const int &right)
 
G4ITType operator- (const G4ITType &left, const int &right)
 

Macro Definition Documentation

◆ ITDef

#define ITDef (   T)
Value:
public:\
static G4ITType fType;\
static const G4ITType ITType()\
{\
return fType;\
}\
const G4ITType GetITType() const\
{\
return fType;\
}\
virtual G4bool equal(const G4IT &right) const \
{\
const T& right_mol = (const T&)right ;\
return (this->operator==(right_mol));\
}\
virtual G4bool diff(const G4IT &right) const\
{\
const T& right_mol = (const T&)right ;\
return (this->operator<(right_mol));\
}
bool G4bool
Definition: G4Types.hh:67
Definition: G4IT.hh:83
#define const
Definition: zconf.h:118

Definition at line 98 of file G4ITType.hh.

◆ ITImp

#define ITImp (   T)    G4ITType T::fType = G4ITTypeManager::Instance()->NewType();

Definition at line 120 of file G4ITType.hh.

Function Documentation

◆ operator+()

G4ITType operator+ ( const G4ITType left,
const int &  right 
)
inline

Definition at line 73 of file G4ITType.hh.

73 {
74 G4ITType output( left.fValue + right );
75 return output;
76}

◆ operator-()

G4ITType operator- ( const G4ITType left,
const int &  right 
)
inline

Definition at line 78 of file G4ITType.hh.

78 {
79 G4ITType output( left.fValue - right );
80 return output;
81}