Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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::G3MatTableEntry ( G4int  id,
G4Material material 
)

Definition at line 35 of file G3MatTableEntry.cc.

36  : fID(id),
37  fMaterial(material)
38 {}
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 ( )
virtual

Definition at line 45 of file G3MatTableEntry.cc.

46 {}

Member Function Documentation

G4int G3MatTableEntry::GetID ( ) const
inline

Definition at line 72 of file G3MatTableEntry.hh.

73 { return fID; }

Here is the caller graph for this function:

G4Material * G3MatTableEntry::GetMaterial ( ) const
inline

Definition at line 75 of file G3MatTableEntry.hh.

76 { return fMaterial; }

Here is the caller graph for this function:

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 }
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 }
G4int GetID() const
G4Material * GetMaterial() const

Here is the call graph for this function:

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 }
G4int GetID() const

Here is the call graph for this function:


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