Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Friends
G4MoleculeID Class Reference

#include <G4MoleculeID.hh>

Public Member Functions

 G4MoleculeID (const int d_)
 
 G4MoleculeID ()
 
 G4MoleculeID (const G4MoleculeID &d_)
 
G4MoleculeIDoperator= (const G4MoleculeID &rhs)
 
G4MoleculeIDoperator= (const int &rhs)
 
 operator int & ()
 
 operator const int & () const
 
bool operator== (const G4MoleculeID &rhs) const
 
bool operator== (const int &rhs) const
 
bool operator< (const G4MoleculeID &rhs) const
 

Static Public Member Functions

static int Last ()
 
static G4MoleculeID Create ()
 
static G4MoleculeID Initialize (int i)
 

Friends

G4MoleculeID operator+ (const G4MoleculeID &left, const int &right)
 
G4MoleculeID operator- (const G4MoleculeID &left, const int &right)
 

Detailed Description

Definition at line 43 of file G4MoleculeID.hh.

Constructor & Destructor Documentation

G4MoleculeID::G4MoleculeID ( const int  d_)
inline

Definition at line 71 of file G4MoleculeID.hh.

71 : fValue(d_){;}
G4MoleculeID::G4MoleculeID ( )
inline

Definition at line 73 of file G4MoleculeID.hh.

Referenced by Create(), and Initialize().

73 {fValue=0;}
G4MoleculeID::G4MoleculeID ( const G4MoleculeID d_)
inline

Definition at line 74 of file G4MoleculeID.hh.

74 : fValue(d_.fValue){;}

Member Function Documentation

static G4MoleculeID G4MoleculeID::Create ( )
inlinestatic

Definition at line 59 of file G4MoleculeID.hh.

References G4MoleculeID().

60  {
61  fLastValue ++;
62  return G4MoleculeID(fLastValue);
63  }
static G4MoleculeID G4MoleculeID::Initialize ( int  i)
inlinestatic

Definition at line 65 of file G4MoleculeID.hh.

References G4MoleculeID().

66  {
67  fLastValue = i;
68  return G4MoleculeID(i);
69  }
static int G4MoleculeID::Last ( )
inlinestatic

Definition at line 54 of file G4MoleculeID.hh.

55  {
56  return fLastValue ;
57  }
G4MoleculeID::operator const int & ( ) const
inline

Definition at line 78 of file G4MoleculeID.hh.

78 { return fValue; }
G4MoleculeID::operator int & ( )
inline

Definition at line 77 of file G4MoleculeID.hh.

77 { return fValue; }
bool G4MoleculeID::operator< ( const G4MoleculeID rhs) const
inline

Definition at line 81 of file G4MoleculeID.hh.

81 { return fValue < rhs.fValue; }
G4MoleculeID& G4MoleculeID::operator= ( const G4MoleculeID rhs)
inline

Definition at line 75 of file G4MoleculeID.hh.

75 { this->fValue = rhs.fValue; return *this;}
G4MoleculeID& G4MoleculeID::operator= ( const int rhs)
inline

Definition at line 76 of file G4MoleculeID.hh.

76 { this->fValue = rhs; return *this;}
bool G4MoleculeID::operator== ( const G4MoleculeID rhs) const
inline

Definition at line 79 of file G4MoleculeID.hh.

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

Definition at line 80 of file G4MoleculeID.hh.

80 { return fValue == rhs; }

Friends And Related Function Documentation

G4MoleculeID operator+ ( const G4MoleculeID left,
const int right 
)
friend
G4MoleculeID operator- ( const G4MoleculeID left,
const int right 
)
friend

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