#include <boost/python.hpp>
#include "G4Version.hh"
#include "pyG4indexing.hh"
#include "G4Isotope.hh"
Go to the source code of this file.
void export_G4Isotope |
( |
| ) |
|
Definition at line 58 of file pyG4Isotope.cc.
References pyG4Isotope::Print().
Referenced by BOOST_PYTHON_MODULE().
60 class_<G4Isotope, G4Isotope*, boost::noncopyable>
61 (
"G4Isotope",
"isotope class", no_init)
63 .def(init<const G4String&, G4int, G4int>())
64 .def(init<const G4String&, G4int, G4int, G4double>())
66 .def(
"GetName", &G4Isotope::GetName,
67 return_value_policy<reference_existing_object>())
68 .def(
"SetName", &G4Isotope::SetName)
69 .def(
"GetZ", &G4Isotope::GetZ)
70 .def(
"GetN", &G4Isotope::GetN)
71 .def(
"GetA", &G4Isotope::GetA)
72 .def(
"GetIsotope", &G4Isotope::GetIsotope,
74 [return_value_policy<reference_existing_object>()])
75 .staticmethod(
"GetIsotope")
76 .def(
"GetIsotopeTable", &G4Isotope::GetIsotopeTable,
77 return_value_policy<reference_existing_object>())
78 .staticmethod(
"GetIsotopeTable")
79 .def(
"GetNumberOfIsotopes", &G4Isotope::GetNumberOfIsotopes)
80 .staticmethod(
"GetNumberOfIsotopes")
82 .def(
"GetIndex", &G4Isotope::GetIndex)
90 class_<G4IsotopeTable> (
"G4IsotopeTable",
"isotope table")
92 .def(self_ns::str(
self))
void Print(G4Isotope &iso)