Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Friends
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 51 of file G4ITType.hh.

Constructor & Destructor Documentation

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

Definition at line 62 of file G4ITType.hh.

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

Definition at line 63 of file G4ITType.hh.

63 : fValue(d_.fValue){;}

Member Function Documentation

G4ITType::operator const int & ( ) const
inline

Definition at line 67 of file G4ITType.hh.

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

Definition at line 66 of file G4ITType.hh.

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

Definition at line 71 of file G4ITType.hh.

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

Definition at line 70 of file G4ITType.hh.

70 { 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 65 of file G4ITType.hh.

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

Definition at line 68 of file G4ITType.hh.

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

Definition at line 69 of file G4ITType.hh.

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

Definition at line 46 of file G4ITType.cc.

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

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

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

Friends And Related Function Documentation

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

Definition at line 74 of file G4ITType.hh.

74  {
75  G4ITType output( left.fValue + right );
76  return output;
77 }
G4ITType operator- ( const G4ITType left,
const int right 
)
friend

Definition at line 79 of file G4ITType.hh.

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

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