32 #include <boost/python.hpp>
36 using namespace boost::python;
43 class_<G4UnitsTable>(
"G4UnitsTable",
"Units Table")
44 .def(vector_indexing_suite<G4UnitsTable>())
47 class_<G4UnitsContainer>(
"G4UnitsContainer",
"Units Container")
48 .def(vector_indexing_suite<G4UnitsContainer>())
51 class_<G4UnitDefinition, boost::noncopyable>
52 (
"G4UnitDefinition",
"Unit Definition", no_init)
53 .def(init<const G4String&, const G4String&, const G4String&, G4double>())
56 return_value_policy<return_by_value>())
58 return_value_policy<return_by_value>())
63 .staticmethod(
"BuildUnitsTable")
65 .staticmethod(
"PrintUnitsTable")
67 return_value_policy<reference_existing_object>())
68 .staticmethod(
"GetUnitsTable")
71 .staticmethod(
"GetValueOf")
73 .staticmethod(
"GetCategory")
76 class_<G4UnitsCategory, boost::noncopyable>
77 (
"G4UnitsCategory",
"Units Category", no_init)
78 .def(init<const G4String&>())
81 return_value_policy<return_by_value>())
83 return_value_policy<reference_existing_object>())
91 class_<G4BestUnit>(
"G4BestUnit",
"present best unit", no_init)
92 .def(init<G4double, const G4String&>())
93 .def(init<const G4ThreeVector&, const G4String&>())
96 return_value_policy<return_by_value>())
98 .def(self_ns::str(
self))
const G4String & GetCategory() const
G4int GetNameMxLen() const
void UpdateNameMxLen(G4int len)
const G4String & GetSymbol() const
static void PrintUnitsTable()
const G4String & GetName() const
void export_G4UnitsTable()
G4int GetSymbMxLen() const
static G4double GetValueOf(const G4String &)
static G4UnitsTable & GetUnitsTable()
G4UnitsContainer & GetUnitsList()
size_t GetIndexOfCategory() const
G4double GetValue() const
static G4String GetCategory(const G4String &)
void UpdateSymbMxLen(G4int len)
const G4String & GetName() const
static void BuildUnitsTable()