Geant4 11.2.2
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 override\
{\
return fType;\
}\
G4bool equal(const G4IT &right) const override\
{\
const T& right_mol = (const T&)right ;\
return (this->operator==(right_mol));\
}\
G4bool diff(const G4IT &right) const override\
{\
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.

113#define ITDef(T)\
114public:\
115inline static G4ITType fType= G4ITTypeManager::Instance()->NewType();\
116static const G4ITType ITType()\
117{\
118 return fType;\
119}\
120const G4ITType GetITType() const override\
121{\
122 return fType;\
123}\
124G4bool equal(const G4IT &right) const override\
125{\
126 const T& right_mol = (const T&)right ;\
127 return (this->operator==(right_mol));\
128}\
129G4bool diff(const G4IT &right) const override\
130{\
131 const T& right_mol = (const T&)right ;\
132 return (this->operator<(right_mol));\
133}

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}