Geant4-11
Public Member Functions | Static Public Member Functions | Private Attributes | Friends
G4ITType Struct Reference

#include <G4ITType.hh>

Public Member Functions

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

Static Public Member Functions

static size_t size ()
 

Private Attributes

int fValue
 

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_) {;}
int fValue
Definition: G4ITType.hh:64

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

References fValue.

◆ operator int &()

G4ITType::operator int & ( )
inline

Definition at line 74 of file G4ITType.hh.

74{ return fValue; }

References fValue.

◆ operator++()

void G4ITType::operator++ ( )
inline

Definition at line 79 of file G4ITType.hh.

79{ fValue++; }

References fValue.

◆ operator<()

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

Definition at line 78 of file G4ITType.hh.

78{ return fValue < rhs.fValue; }

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

References fValue.

◆ operator=() [2/2]

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

Definition at line 73 of file G4ITType.hh.

73{ fValue = rhs; return *this;}

References fValue.

◆ operator==() [1/2]

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

Definition at line 76 of file G4ITType.hh.

76{ return fValue == rhs.fValue; }

References fValue.

◆ operator==() [2/2]

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

Definition at line 77 of file G4ITType.hh.

77{ return fValue == rhs; }

References fValue.

◆ 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

References G4ITTypeManager::Instance(), and G4ITTypeManager::size().

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}

Field Documentation

◆ fValue

int G4ITType::fValue
private

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