Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4FakeParticleID Class Reference

#include <G4FakeParticleID.hh>

Public Member Functions

 G4FakeParticleID (const int d_)
 
 G4FakeParticleID ()
 
 G4FakeParticleID (const G4FakeParticleID &d_)=default
 
G4FakeParticleIDoperator= (const G4FakeParticleID &rhs)=default
 
G4FakeParticleIDoperator= (const int &rhs)
 
 operator int & ()
 
 operator const int & () const
 
G4bool operator== (const G4FakeParticleID &rhs) const
 
G4bool operator== (const int &rhs) const
 
G4bool operator< (const G4FakeParticleID &rhs) const
 

Static Public Member Functions

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

Friends

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

Detailed Description

Definition at line 52 of file G4FakeParticleID.hh.

Constructor & Destructor Documentation

◆ G4FakeParticleID() [1/3]

G4FakeParticleID::G4FakeParticleID ( const int d_)
inline

Definition at line 80 of file G4FakeParticleID.hh.

80: fValue(d_){}

◆ G4FakeParticleID() [2/3]

G4FakeParticleID::G4FakeParticleID ( )
inline

Definition at line 82 of file G4FakeParticleID.hh.

82{fValue=0;}

Referenced by Create(), and Initialize().

◆ G4FakeParticleID() [3/3]

G4FakeParticleID::G4FakeParticleID ( const G4FakeParticleID & d_)
default

Member Function Documentation

◆ Create()

static G4FakeParticleID G4FakeParticleID::Create ( )
inlinestatic

Definition at line 68 of file G4FakeParticleID.hh.

69 {
70 fLastValue ++;
71 return G4FakeParticleID(fLastValue);
72 }

◆ Initialize()

static G4FakeParticleID G4FakeParticleID::Initialize ( int i)
inlinestatic

Definition at line 74 of file G4FakeParticleID.hh.

75 {
76 fLastValue = i;
77 return G4FakeParticleID(i);
78 }

◆ Last()

static int G4FakeParticleID::Last ( )
inlinestatic

Definition at line 63 of file G4FakeParticleID.hh.

64 {
65 return fLastValue ;
66 }

◆ operator const int &()

G4FakeParticleID::operator const int & ( ) const
inline

Definition at line 87 of file G4FakeParticleID.hh.

87{ return fValue; }

◆ operator int &()

G4FakeParticleID::operator int & ( )
inline

Definition at line 86 of file G4FakeParticleID.hh.

86{ return fValue; }

◆ operator<()

G4bool G4FakeParticleID::operator< ( const G4FakeParticleID & rhs) const
inline

Definition at line 90 of file G4FakeParticleID.hh.

90{ return fValue < rhs.fValue; }

◆ operator=() [1/2]

G4FakeParticleID & G4FakeParticleID::operator= ( const G4FakeParticleID & rhs)
inlinedefault

◆ operator=() [2/2]

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

Definition at line 85 of file G4FakeParticleID.hh.

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

◆ operator==() [1/2]

G4bool G4FakeParticleID::operator== ( const G4FakeParticleID & rhs) const
inline

Definition at line 88 of file G4FakeParticleID.hh.

88{ return fValue == rhs.fValue; }

◆ operator==() [2/2]

G4bool G4FakeParticleID::operator== ( const int & rhs) const
inline

Definition at line 89 of file G4FakeParticleID.hh.

89{ return fValue == rhs; }

Friends And Related Symbol Documentation

◆ operator+

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

◆ operator-

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

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