#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 59 of file pyG4Isotope.cc.
References pyG4Isotope::Print().
Referenced by BOOST_PYTHON_MODULE().
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))
void Print(G4Isotope &iso)