Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ITType Struct Reference

#include <G4ITType.hh>

Public Member Functions

 G4ITType (const int d_=0)
 
 G4ITType (const G4ITType &d_)
 
G4ITTypeoperator= (const G4ITType &rhs)
 
G4ITTypeoperator= (const int &rhs)
 
 operator int & ()
 
 operator const int & () const
 
bool operator== (const G4ITType &rhs) const
 
bool operator== (const int &rhs) const
 
bool operator< (const G4ITType &rhs) const
 
void operator++ ()
 

Static Public Member Functions

static size_t size ()
 

Friends

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

Detailed Description

Tag the G4IT Should be automatically setup by G4IT using : ITDef(MyIT) and ITImp(MyIT)

Definition at line 50 of file G4ITType.hh.

Constructor & Destructor Documentation

◆ G4ITType() [1/2]

G4ITType::G4ITType ( const int  d_ = 0)
inline

Definition at line 61 of file G4ITType.hh.

61: fValue(d_) {;}

◆ G4ITType() [2/2]

G4ITType::G4ITType ( const G4ITType d_)
inline

Definition at line 62 of file G4ITType.hh.

62: fValue(d_.fValue){;}

Member Function Documentation

◆ operator const int &()

G4ITType::operator const int & ( ) const
inline

Definition at line 66 of file G4ITType.hh.

66{ return fValue; }

◆ operator int &()

G4ITType::operator int & ( )
inline

Definition at line 65 of file G4ITType.hh.

65{ return fValue; }

◆ operator++()

void G4ITType::operator++ ( )
inline

Definition at line 70 of file G4ITType.hh.

70{ fValue++; }

◆ operator<()

bool G4ITType::operator< ( const G4ITType rhs) const
inline

Definition at line 69 of file G4ITType.hh.

69{ return fValue < rhs.fValue; }

◆ operator=() [1/2]

G4ITType & G4ITType::operator= ( const G4ITType rhs)

Definition at line 46 of file G4ITType.cc.

47{
48 if (this == &rhs) return *this;
49 fValue = rhs.fValue;
50 return *this;
51}

◆ operator=() [2/2]

G4ITType & G4ITType::operator= ( const int &  rhs)
inline

Definition at line 64 of file G4ITType.hh.

64{ fValue = rhs; return *this;}

◆ operator==() [1/2]

bool G4ITType::operator== ( const G4ITType rhs) const
inline

Definition at line 67 of file G4ITType.hh.

67{ return fValue == rhs.fValue; }

◆ operator==() [2/2]

bool G4ITType::operator== ( const int &  rhs) const
inline

Definition at line 68 of file G4ITType.hh.

68{ return fValue == rhs; }

◆ size()

size_t G4ITType::size ( )
static

Definition at line 41 of file G4ITType.cc.

42{
44}
static G4ITTypeManager * Instance()
Definition: G4ITType.cc:53
size_t size() const
Definition: G4ITType.cc:73

Referenced by G4ITModelHandler::G4ITModelHandler(), G4ITModelProcessor::G4ITModelProcessor(), and G4ITModelHandler::RegisterModel().

Friends And Related Function Documentation

◆ operator+

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

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 
)
friend

Definition at line 78 of file G4ITType.hh.

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

The documentation for this struct was generated from the following files: