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

#include <G3MatTableEntry.hh>

Public Member Functions

 G3MatTableEntry (G4int id, G4Material *material)
 
 G3MatTableEntry (const G3MatTableEntry &right)
 
virtual ~G3MatTableEntry ()
 
G3MatTableEntryoperator= (const G3MatTableEntry &right)
 
G4bool operator== (const G3MatTableEntry &right) const
 
G4bool operator!= (const G3MatTableEntry &right) const
 
G4int GetID () const
 
G4MaterialGetMaterial () const
 

Detailed Description

Definition at line 45 of file G3MatTableEntry.hh.

Constructor & Destructor Documentation

◆ G3MatTableEntry() [1/2]

G3MatTableEntry::G3MatTableEntry ( G4int  id,
G4Material material 
)

Definition at line 34 of file G3MatTableEntry.cc.

35 : fID(id),
36 fMaterial(material)
37{}

◆ G3MatTableEntry() [2/2]

G3MatTableEntry::G3MatTableEntry ( const G3MatTableEntry right)

Definition at line 39 of file G3MatTableEntry.cc.

40 : fID(right.GetID()),
41 fMaterial(right.GetMaterial())
42{}
G4int GetID() const
G4Material * GetMaterial() const

◆ ~G3MatTableEntry()

G3MatTableEntry::~G3MatTableEntry ( )
virtual

Definition at line 44 of file G3MatTableEntry.cc.

45{}

Member Function Documentation

◆ GetID()

G4int G3MatTableEntry::GetID ( ) const
inline

Definition at line 71 of file G3MatTableEntry.hh.

72{ return fID; }

Referenced by G3MatTable::get(), operator=(), and operator==().

◆ GetMaterial()

G4Material * G3MatTableEntry::GetMaterial ( ) const
inline

Definition at line 74 of file G3MatTableEntry.hh.

75{ return fMaterial; }

Referenced by G3MatTable::get(), and operator=().

◆ operator!=()

G4bool G3MatTableEntry::operator!= ( const G3MatTableEntry right) const

Definition at line 63 of file G3MatTableEntry.cc.

64{
65 if (*this == right)
66 return false;
67 else
68 return true;
69}

◆ operator=()

G3MatTableEntry & G3MatTableEntry::operator= ( const G3MatTableEntry right)

Definition at line 47 of file G3MatTableEntry.cc.

48{
49 if (&right == this) { return *this; }
50 fID = right.GetID();
51 fMaterial = right.GetMaterial();
52 return *this;
53}

◆ operator==()

G4bool G3MatTableEntry::operator== ( const G3MatTableEntry right) const

Definition at line 55 of file G3MatTableEntry.cc.

56{
57 if (fID == right.GetID())
58 return true;
59 else
60 return false;
61}

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