Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 60 of file G4ITType.hh.

Constructor & Destructor Documentation

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

Definition at line 71 of file G4ITType.hh.

71 : fValue(d_) {;}
G4ITType::G4ITType ( const G4ITType d_)
inline

Definition at line 72 of file G4ITType.hh.

72 : fValue(d_.fValue){;}

Member Function Documentation

G4ITType::operator const int & ( ) const
inline

Definition at line 76 of file G4ITType.hh.

76 { return fValue; }
G4ITType::operator int & ( )
inline

Definition at line 75 of file G4ITType.hh.

75 { return fValue; }
void G4ITType::operator++ ( )
inline

Definition at line 80 of file G4ITType.hh.

80 { fValue++; }
bool G4ITType::operator< ( const G4ITType rhs) const
inline

Definition at line 79 of file G4ITType.hh.

79 { return fValue < rhs.fValue; }
G4ITType & G4ITType::operator= ( const G4ITType rhs)

Definition at line 51 of file G4ITType.cc.

52 {
53  if (this == &rhs) return *this;
54  fValue = rhs.fValue;
55  return *this;
56 }
G4ITType& G4ITType::operator= ( const int rhs)
inline

Definition at line 74 of file G4ITType.hh.

74 { fValue = rhs; return *this;}
bool G4ITType::operator== ( const G4ITType rhs) const
inline

Definition at line 77 of file G4ITType.hh.

77 { return fValue == rhs.fValue; }
bool G4ITType::operator== ( const int rhs) const
inline

Definition at line 78 of file G4ITType.hh.

78 { return fValue == rhs; }
size_t G4ITType::size ( )
static

Definition at line 46 of file G4ITType.cc.

47 {
48  return G4ITTypeManager::Instance()->size();
49 }
static G4ITTypeManager * Instance()
Definition: G4ITType.cc:58
size_t size() const
Definition: G4ITType.cc:100

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

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

Definition at line 83 of file G4ITType.hh.

83  {
84  G4ITType output( left.fValue + right );
85  return output;
86 }
G4ITType operator- ( const G4ITType left,
const int right 
)
friend

Definition at line 88 of file G4ITType.hh.

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

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