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

Go to the source code of this file.

Classes

struct  G4ITType
 
class  G4ITTypeManager
 

Macros

#define ITDef(T)
 

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:\
inline static G4ITType fType= G4ITTypeManager::Instance()->NewType();\
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:86
G4ITType NewType()
Definition: G4ITType.cc:104
static G4ITTypeManager * Instance()
Definition: G4ITType.cc:57
Definition: G4IT.hh:88

Definition at line 113 of file G4ITType.hh.

Function Documentation

◆ operator+()

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

Definition at line 82 of file G4ITType.hh.

82 {
83 G4ITType output( left.fValue + right );
84 return output;
85}

◆ operator-()

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

Definition at line 87 of file G4ITType.hh.

87 {
88 G4ITType output( left.fValue - right );
89 return output;
90}