31 #include <boost/python.hpp> 32 #include "G4Version.hh" 34 #include "G4Isotope.hh" 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))
BOOST_PYTHON_FUNCTION_OVERLOADS(f_func2, func2, 1, 2)
void Print(G4Isotope &iso)