93 #if G4VERSION_NUMBER >= 710 95 class_<G4NistManager, boost::noncopyable>
96 (
"G4NistManager",
"manager class for NIST materials", no_init)
98 .def(
"Instance", &G4NistManager::Instance,
99 return_value_policy<reference_existing_object>())
100 .staticmethod(
"Instance")
102 .def(
"SetVerbose", &G4NistManager::SetVerbose)
103 .def(
"GetVerbose", &G4NistManager::GetVerbose)
105 #if G4VERSION_NUMBER < 910 106 .def(
"RegisterElement", &G4NistManager::RegisterElement)
107 .def(
"DeRegisterElement", &G4NistManager::DeRegisterElement)
109 .def(
"GetElement", &G4NistManager::GetElement,
110 return_internal_reference<>())
111 .def(
"FindOrBuildElement", f1_FindOrBuildElement,
112 f_FindOrBuildElement()
113 [return_value_policy<reference_existing_object>()])
114 .def(
"FindOrBuildElement", f2_FindOrBuildElement,
115 f_FindOrBuildElement()
116 [return_value_policy<reference_existing_object>()])
117 .def(
"GetNumberOfElements", &G4NistManager::GetNumberOfElements)
118 .def(
"GetZ", &G4NistManager::GetZ)
119 .def(
"GetIsotopeMass", &G4NistManager::GetIsotopeMass)
120 .def(
"PrintElement", f1_PrintElement)
121 .def(
"PrintElement", f2_PrintElement)
122 .def(
"PrintG4Element", &G4NistManager::PrintG4Element)
124 #if G4VERSION_NUMBER < 910 125 .def(
"RegisterMaterial", &G4NistManager::RegisterMaterial)
126 .def(
"DeRegisterMaterial", &G4NistManager::DeRegisterMaterial)
128 .def(
"GetMaterial", &G4NistManager::GetMaterial,
129 return_value_policy<reference_existing_object>())
130 .def(
"FindOrBuildMaterial", &G4NistManager::FindOrBuildMaterial,
131 f_FindOrBuildMaterial()
132 [return_value_policy<reference_existing_object>()])
133 .def(
"ConstructNewMaterial", f1_ConstructNewMaterial,
134 f_ConstructNewMaterial()
135 [return_value_policy<reference_existing_object>()])
136 .def(
"ConstructNewMaterial", f2_ConstructNewMaterial,
137 f_ConstructNewMaterial()
138 [return_value_policy<reference_existing_object>()])
139 #if G4VERSION_NUMBER >= 910 140 .def(
"ConstructNewGasMaterial", &G4NistManager::ConstructNewGasMaterial,
141 f_ConstructNewGasMaterial()
142 [return_value_policy<reference_existing_object>()])
144 .def(
"GetNumberOfMaterials", &G4NistManager::GetNumberOfMaterials)
145 .def(
"ListMaterials", &G4NistManager::ListMaterials)
146 .def(
"PrintG4Material", &G4NistManager::PrintG4Material)