Geant4  10.00.p02
G4ITType.hh File Reference
#include <cstddef>
#include "G4Types.hh"
+ Include dependency graph for G4ITType.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  G4ITType
 Tag the G4IT Should be automatically setup by G4IT using : ITDef(MyIT) and ITImp(MyIT) More...
 
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

#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));\
}
G4IT is a interface which allows the inheriting object :
Definition: G4IT.hh:82
Tag the G4IT Should be automatically setup by G4IT using : ITDef(MyIT) and ITImp(MyIT) ...
Definition: G4ITType.hh:51
bool G4bool
Definition: G4Types.hh:79

Definition at line 105 of file G4ITType.hh.

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

Definition at line 127 of file G4ITType.hh.

Function Documentation

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

Definition at line 74 of file G4ITType.hh.

References G4ITType::fValue.

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

Definition at line 79 of file G4ITType.hh.

References G4ITType::fValue.