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::G4ITType ( const int  d_ = 0  )  [inline]

Definition at line 61 of file G4ITType.hh.

00061 : fValue(d_) {;}

G4ITType::G4ITType ( const G4ITType d_  )  [inline]

Definition at line 62 of file G4ITType.hh.

00062 : fValue(d_.fValue){;}


Member Function Documentation

G4ITType::operator const int & (  )  const [inline]

Definition at line 66 of file G4ITType.hh.

00066 { return fValue; }

G4ITType::operator int & (  )  [inline]

Definition at line 65 of file G4ITType.hh.

00065 { return fValue; }

void G4ITType::operator++ (  )  [inline]

Definition at line 70 of file G4ITType.hh.

00070 { fValue++; }

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

Definition at line 69 of file G4ITType.hh.

References fValue.

00069 { return fValue < rhs.fValue; }

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

Definition at line 64 of file G4ITType.hh.

00064 { fValue = rhs; return *this;}

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

Definition at line 46 of file G4ITType.cc.

References fValue.

00047 {
00048     if (this == &rhs) return *this;
00049     fValue = rhs.fValue;
00050     return *this;
00051 }

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

Definition at line 68 of file G4ITType.hh.

00068 { return fValue == rhs; }

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

Definition at line 67 of file G4ITType.hh.

References fValue.

00067 { return fValue == rhs.fValue; }

size_t G4ITType::size (  )  [static]

Definition at line 41 of file G4ITType.cc.

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

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

00042 {
00043     return  G4ITTypeManager::Instance()->size();
00044 }


Friends And Related Function Documentation

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

Definition at line 73 of file G4ITType.hh.

00073                                                                   {
00074     G4ITType output( left.fValue + right );
00075     return output;
00076 }

G4ITType operator- ( const G4ITType left,
const int &  right 
) [friend]

Definition at line 78 of file G4ITType.hh.

00078                                                                   {
00079     G4ITType output( left.fValue - right );
00080     return output;
00081 }


The documentation for this struct was generated from the following files:
Generated on Mon May 27 17:52:20 2013 for Geant4 by  doxygen 1.4.7