Geant4 10.7.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
 
G4bool operator== (const G4ITType &rhs) const
 
G4bool operator== (const int &rhs) const
 
G4bool 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 59 of file G4ITType.hh.

Constructor & Destructor Documentation

◆ G4ITType() [1/2]

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

Definition at line 70 of file G4ITType.hh.

70: fValue(d_) {;}

◆ G4ITType() [2/2]

G4ITType::G4ITType ( const G4ITType d_)
inline

Definition at line 71 of file G4ITType.hh.

71: fValue(d_.fValue){;}

Member Function Documentation

◆ operator const int &()

G4ITType::operator const int & ( ) const
inline

Definition at line 75 of file G4ITType.hh.

75{ return fValue; }

◆ operator int &()

G4ITType::operator int & ( )
inline

Definition at line 74 of file G4ITType.hh.

74{ return fValue; }

◆ operator++()

void G4ITType::operator++ ( )
inline

Definition at line 79 of file G4ITType.hh.

79{ fValue++; }

◆ operator<()

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

Definition at line 78 of file G4ITType.hh.

78{ return fValue < rhs.fValue; }

◆ operator=() [1/2]

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

Definition at line 50 of file G4ITType.cc.

51{
52 if (this == &rhs) return *this;
53 fValue = rhs.fValue;
54 return *this;
55}

◆ operator=() [2/2]

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

Definition at line 73 of file G4ITType.hh.

73{ fValue = rhs; return *this;}

◆ operator==() [1/2]

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

Definition at line 76 of file G4ITType.hh.

76{ return fValue == rhs.fValue; }

◆ operator==() [2/2]

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

Definition at line 77 of file G4ITType.hh.

77{ return fValue == rhs; }

◆ size()

size_t G4ITType::size ( )
static

Definition at line 45 of file G4ITType.cc.

46{
48}
static G4ITTypeManager * Instance()
Definition: G4ITType.cc:57
size_t size() const
Definition: G4ITType.cc:99

Friends And Related Function Documentation

◆ operator+

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

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

Definition at line 87 of file G4ITType.hh.

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

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