Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4Isotope.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "pyG4indexing.hh"
#include "G4Isotope.hh"
Include dependency graph for pyG4Isotope.cc:

Go to the source code of this file.

Namespaces

 pyG4Isotope
 

Functions

void pyG4Isotope::Print (G4Isotope &iso)
 
void export_G4Isotope ()
 

Function Documentation

void export_G4Isotope ( )

Definition at line 59 of file pyG4Isotope.cc.

60 {
61  class_<G4Isotope, G4Isotope*, boost::noncopyable>
62  ("G4Isotope", "isotope class", no_init)
63  // constructors
64  .def(init<const G4String&, G4int, G4int>())
65  .def(init<const G4String&, G4int, G4int, G4double>())
66  // ---
67  .def("GetName", &G4Isotope::GetName,
68  return_value_policy<reference_existing_object>())
69  .def("SetName", &G4Isotope::SetName)
70  .def("GetZ", &G4Isotope::GetZ)
71  .def("GetN", &G4Isotope::GetN)
72  .def("GetA", &G4Isotope::GetA)
73  .def("GetIsotope", &G4Isotope::GetIsotope,
74  f_GetIsotope()
75  [return_value_policy<reference_existing_object>()])
76  .staticmethod("GetIsotope")
77  .def("GetIsotopeTable", &G4Isotope::GetIsotopeTable,
78  return_value_policy<reference_existing_object>())
79  .staticmethod("GetIsotopeTable")
80  .def("GetNumberOfIsotopes", &G4Isotope::GetNumberOfIsotopes)
81  .staticmethod("GetNumberOfIsotopes")
82 
83  .def("GetIndex", &G4Isotope::GetIndex)
84  // ---
85  .def("Print", Print)
86  .def(self == self)
87  .def(self != self)
88  ;
89 
90  // G4IsotopeTable
91  class_<G4IsotopeTable> ("G4IsotopeTable", "isotope table")
93  .def(self_ns::str(self))
94  ;
95 }
G4double GetA() const
Definition: G4Isotope.hh:97
const G4String & GetName() const
Definition: G4Isotope.hh:88
void SetName(const G4String &name)
Definition: G4Isotope.hh:132
static const G4IsotopeTable * GetIsotopeTable()
Definition: G4Isotope.cc:182
static G4Isotope * GetIsotope(const G4String &name, G4bool warning=false)
Definition: G4Isotope.cc:196
G4int GetN() const
Definition: G4Isotope.hh:94
size_t GetIndex() const
Definition: G4Isotope.hh:111
void Print(const std::vector< T > &data)
Definition: DicomRun.hh:109
G4int GetZ() const
Definition: G4Isotope.hh:91
static size_t GetNumberOfIsotopes()
Definition: G4Isotope.cc:189

Here is the call graph for this function:

Here is the caller graph for this function: