32 #include <boost/python.hpp> 33 #include "G4Version.hh" 35 #include "G4Isotope.hh" 61 class_<G4Isotope, G4Isotope*, boost::noncopyable>
62 (
"G4Isotope",
"isotope class", no_init)
64 .def(init<const G4String&, G4int, G4int>())
65 .def(init<const G4String&, G4int, G4int, G4double>())
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,
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")
83 .def(
"GetIndex", &G4Isotope::GetIndex)
91 class_<G4IsotopeTable> (
"G4IsotopeTable",
"isotope table")
93 .def(self_ns::str(
self))
BOOST_PYTHON_FUNCTION_OVERLOADS(f_func2, func2, 1, 2)
void Print(G4Isotope &iso)