Geant4-11
Data Structures | Macros | Functions
G4ITType.hh File Reference
#include <cstddef>
#include "G4Types.hh"

Go to the source code of this file.

Data Structures

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:86
Definition: G4IT.hh:88

Definition at line 113 of file G4ITType.hh.

◆ ITImp

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

Definition at line 135 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}
int fValue
Definition: G4ITType.hh:64

◆ 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}