Geant4-11
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | Friends
G4FakeParticleID Class Reference

#include <G4FakeParticleID.hh>

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

int fValue
 

Static Private Attributes

static G4ThreadLocal int fLastValue = 999666999
 

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;}

References fValue.

Referenced by Create(), and Initialize().

◆ G4FakeParticleID() [3/3]

G4FakeParticleID::G4FakeParticleID ( const G4FakeParticleID d_)
inline

Definition at line 83 of file G4FakeParticleID.hh.

83: fValue(d_.fValue){;}

Member Function Documentation

◆ Create()

static G4FakeParticleID G4FakeParticleID::Create ( )
inlinestatic

Definition at line 68 of file G4FakeParticleID.hh.

69 {
70 fLastValue ++;
72 }
static G4ThreadLocal int fLastValue

References fLastValue, and G4FakeParticleID().

◆ 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 }

References fLastValue, and G4FakeParticleID().

◆ Last()

static int G4FakeParticleID::Last ( )
inlinestatic

Definition at line 63 of file G4FakeParticleID.hh.

64 {
65 return fLastValue ;
66 }

References fLastValue.

◆ operator const int &()

G4FakeParticleID::operator const int & ( ) const
inline

Definition at line 87 of file G4FakeParticleID.hh.

87{ return fValue; }

References fValue.

◆ operator int &()

G4FakeParticleID::operator int & ( )
inline

Definition at line 86 of file G4FakeParticleID.hh.

86{ return fValue; }

References fValue.

◆ operator<()

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

Definition at line 90 of file G4FakeParticleID.hh.

90{ return fValue < rhs.fValue; }

References fValue.

◆ operator=() [1/2]

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

Definition at line 84 of file G4FakeParticleID.hh.

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

References fValue.

◆ 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; }

References fValue.

◆ operator==() [2/2]

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

Definition at line 89 of file G4FakeParticleID.hh.

89{ return fValue == rhs; }

References fValue.

Friends And Related Function Documentation

◆ operator+

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

◆ operator-

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

Field Documentation

◆ fLastValue

G4ThreadLocal int G4FakeParticleID::fLastValue = 999666999
inlinestaticprivate

Definition at line 59 of file G4FakeParticleID.hh.

Referenced by Create(), Initialize(), and Last().

◆ fValue

int G4FakeParticleID::fValue
private

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