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

Definition at line 69 of file G4MoleculeID.hh.

00069 : fValue(d_){;}

G4MoleculeID::G4MoleculeID (  )  [inline]

Definition at line 71 of file G4MoleculeID.hh.

Referenced by Create(), and Initialize().

00071 {fValue=0;}

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

Definition at line 72 of file G4MoleculeID.hh.

00072 : fValue(d_.fValue){;}


Member Function Documentation

static G4MoleculeID G4MoleculeID::Create (  )  [inline, static]

Definition at line 57 of file G4MoleculeID.hh.

References G4MoleculeID().

00058     {
00059         fLastValue ++;
00060         return G4MoleculeID(fLastValue);
00061     }

static G4MoleculeID G4MoleculeID::Initialize ( int  i  )  [inline, static]

Definition at line 63 of file G4MoleculeID.hh.

References G4MoleculeID().

00064     {
00065         fLastValue = i;
00066         return G4MoleculeID(i);
00067     }

static int G4MoleculeID::Last (  )  [inline, static]

Definition at line 52 of file G4MoleculeID.hh.

00053     {
00054         return fLastValue ;
00055     }

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

Definition at line 76 of file G4MoleculeID.hh.

00076 { return fValue; }

G4MoleculeID::operator int & (  )  [inline]

Definition at line 75 of file G4MoleculeID.hh.

00075 { return fValue; }

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

Definition at line 79 of file G4MoleculeID.hh.

References fValue.

00079 { return fValue < rhs.fValue; }

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

Definition at line 74 of file G4MoleculeID.hh.

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

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

Definition at line 73 of file G4MoleculeID.hh.

References fValue.

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

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

Definition at line 78 of file G4MoleculeID.hh.

00078 { return fValue == rhs; }

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

Definition at line 77 of file G4MoleculeID.hh.

References fValue.

00077 { return fValue == rhs.fValue; }


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:
Generated on Mon May 27 17:52:30 2013 for Geant4 by  doxygen 1.4.7