Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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 41 of file G4MoleculeID.hh.

Constructor & Destructor Documentation

◆ G4MoleculeID() [1/3]

G4MoleculeID::G4MoleculeID ( const int  d_)
inline

Definition at line 69 of file G4MoleculeID.hh.

69: fValue(d_){;}

◆ G4MoleculeID() [2/3]

G4MoleculeID::G4MoleculeID ( )
inline

Definition at line 71 of file G4MoleculeID.hh.

71{fValue=0;}

Referenced by Create(), and Initialize().

◆ G4MoleculeID() [3/3]

G4MoleculeID::G4MoleculeID ( const G4MoleculeID d_)
inline

Definition at line 72 of file G4MoleculeID.hh.

72: fValue(d_.fValue){;}

Member Function Documentation

◆ Create()

static G4MoleculeID G4MoleculeID::Create ( )
inlinestatic

Definition at line 57 of file G4MoleculeID.hh.

58 {
59 fLastValue ++;
60 return G4MoleculeID(fLastValue);
61 }

◆ Initialize()

static G4MoleculeID G4MoleculeID::Initialize ( int  i)
inlinestatic

Definition at line 63 of file G4MoleculeID.hh.

64 {
65 fLastValue = i;
66 return G4MoleculeID(i);
67 }

◆ Last()

static int G4MoleculeID::Last ( )
inlinestatic

Definition at line 52 of file G4MoleculeID.hh.

53 {
54 return fLastValue ;
55 }

◆ operator const int &()

G4MoleculeID::operator const int & ( ) const
inline

Definition at line 76 of file G4MoleculeID.hh.

76{ return fValue; }

◆ operator int &()

G4MoleculeID::operator int & ( )
inline

Definition at line 75 of file G4MoleculeID.hh.

75{ return fValue; }

◆ operator<()

bool G4MoleculeID::operator< ( const G4MoleculeID rhs) const
inline

Definition at line 79 of file G4MoleculeID.hh.

79{ return fValue < rhs.fValue; }

◆ operator=() [1/2]

G4MoleculeID & G4MoleculeID::operator= ( const G4MoleculeID rhs)
inline

Definition at line 73 of file G4MoleculeID.hh.

73{ this->fValue = rhs.fValue; return *this;}

◆ operator=() [2/2]

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

Definition at line 74 of file G4MoleculeID.hh.

74{ this->fValue = rhs; return *this;}

◆ operator==() [1/2]

bool G4MoleculeID::operator== ( const G4MoleculeID rhs) const
inline

Definition at line 77 of file G4MoleculeID.hh.

77{ return fValue == rhs.fValue; }

◆ operator==() [2/2]

bool G4MoleculeID::operator== ( const int &  rhs) const
inline

Definition at line 78 of file G4MoleculeID.hh.

78{ return fValue == rhs; }

Friends And Related Function Documentation

◆ operator+

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

◆ operator-

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

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