Geant4 9.6.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)
 
G4int operator== (const G3MatTableEntry &right) const
 
G4int operator!= (const G3MatTableEntry &right) const
 
G4int GetID () const
 
G4MaterialGetMaterial () const
 

Detailed Description

Definition at line 46 of file G3MatTableEntry.hh.

Constructor & Destructor Documentation

◆ G3MatTableEntry() [1/2]

G3MatTableEntry::G3MatTableEntry ( G4int  id,
G4Material material 
)

Definition at line 35 of file G3MatTableEntry.cc.

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

◆ G3MatTableEntry() [2/2]

G3MatTableEntry::G3MatTableEntry ( const G3MatTableEntry right)

Definition at line 40 of file G3MatTableEntry.cc.

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

◆ ~G3MatTableEntry()

G3MatTableEntry::~G3MatTableEntry ( )
virtual

Definition at line 45 of file G3MatTableEntry.cc.

46{}

Member Function Documentation

◆ GetID()

G4int G3MatTableEntry::GetID ( ) const
inline

Definition at line 72 of file G3MatTableEntry.hh.

73{ return fID; }

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

◆ GetMaterial()

G4Material * G3MatTableEntry::GetMaterial ( ) const
inline

Definition at line 75 of file G3MatTableEntry.hh.

76{ return fMaterial; }

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

◆ operator!=()

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

Definition at line 64 of file G3MatTableEntry.cc.

65{
66 if (*this == right)
67 return 0;
68 else
69 return 1;
70}

◆ operator=()

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

Definition at line 48 of file G3MatTableEntry.cc.

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

◆ operator==()

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

Definition at line 56 of file G3MatTableEntry.cc.

57{
58 if (fID == right.GetID())
59 return 1;
60 else
61 return 0;
62}

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