Geant4  10.02.p03
G4FakeParticleID Class Reference

#include <G4FakeParticleID.hh>

Collaboration diagram for G4FakeParticleID:

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

int fValue
 

Static Private Attributes

static G4ThreadLocal int fLastValue
 

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.

Here is the caller graph for this function:

◆ G4FakeParticleID() [3/3]

G4FakeParticleID::G4FakeParticleID ( const G4FakeParticleID d_)
inline

Definition at line 83 of file G4FakeParticleID.hh.

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
Here is the call graph for this function:

◆ 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  }
static G4ThreadLocal int fLastValue
Here is the call graph for this function:

◆ Last()

static int G4FakeParticleID::Last ( )
inlinestatic

Definition at line 63 of file G4FakeParticleID.hh.

64  {
65  return fLastValue ;
66  }
static G4ThreadLocal int fLastValue

◆ 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<()

bool 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)
inline

Definition at line 84 of file G4FakeParticleID.hh.

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

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

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

Definition at line 88 of file G4FakeParticleID.hh.

88 { return fValue == rhs.fValue; }

◆ operator==() [2/2]

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

Definition at line 89 of file G4FakeParticleID.hh.

89 { return fValue == rhs; }

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

Member Data Documentation

◆ fLastValue

G4ThreadLocal int G4FakeParticleID::fLastValue
staticprivate

Definition at line 59 of file G4FakeParticleID.hh.

◆ fValue

int G4FakeParticleID::fValue
private

Definition at line 57 of file G4FakeParticleID.hh.


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