32 #include <boost/python.hpp>
37 using namespace boost::python;
42 namespace pyG4Isotope {
54 using namespace pyG4Isotope;
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>())
68 return_value_policy<reference_existing_object>())
75 [return_value_policy<reference_existing_object>()])
76 .staticmethod(
"GetIsotope")
78 return_value_policy<reference_existing_object>())
79 .staticmethod(
"GetIsotopeTable")
81 .staticmethod(
"GetNumberOfIsotopes")
91 class_<G4IsotopeTable> (
"G4IsotopeTable",
"isotope table")
92 .def(vector_indexing_suite<G4IsotopeTable>())
93 .def(self_ns::str(
self))
const G4String & GetName() const
BOOST_PYTHON_FUNCTION_OVERLOADS(f_func2, func2, 1, 2)
static G4Isotope * GetIsotope(const G4String &name, G4bool warning=false)
void SetName(const G4String &name)
static size_t GetNumberOfIsotopes()
void Print(G4Element &ele)
G4GLOB_DLL std::ostream G4cout
typedef void(XMLCALL *XML_ElementDeclHandler)(void *userData
static const G4IsotopeTable * GetIsotopeTable()