31#include <boost/python.hpp>
32#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
35using namespace boost::python;
42 class_<G4UnitsTable>(
"G4UnitsTable",
"Units Table")
43 .def(vector_indexing_suite<G4UnitsTable>())
46 class_<G4UnitsContainer>(
"G4UnitsContainer",
"Units Container")
47 .def(vector_indexing_suite<G4UnitsContainer>())
50 class_<G4UnitDefinition, boost::noncopyable>
51 (
"G4UnitDefinition",
"Unit Definition", no_init)
52 .def(init<const G4String&, const G4String&, const G4String&, G4double>())
55 return_value_policy<return_by_value>())
57 return_value_policy<return_by_value>())
62 .staticmethod(
"BuildUnitsTable")
64 .staticmethod(
"PrintUnitsTable")
66 return_value_policy<reference_existing_object>())
67 .staticmethod(
"GetUnitsTable")
70 .staticmethod(
"GetValueOf")
72 .staticmethod(
"GetCategory")
75 class_<G4UnitsCategory, boost::noncopyable>
76 (
"G4UnitsCategory",
"Units Category", no_init)
77 .def(init<const G4String&>())
80 return_value_policy<return_by_value>())
82 return_value_policy<reference_existing_object>())
90 class_<G4BestUnit>(
"G4BestUnit",
"present best unit", no_init)
91 .def(init<G4double, const G4String&>())
92 .def(init<const G4ThreeVector&, const G4String&>())
95 return_value_policy<return_by_value>())
97 .def(self_ns::str(self))
const G4String & GetCategory() const
std::size_t GetIndexOfCategory() const
static void BuildUnitsTable()
G4double GetValue() const
static G4double GetValueOf(const G4String &)
static G4String GetCategory(const G4String &)
static void PrintUnitsTable()
const G4String & GetName() const
static G4UnitsTable & GetUnitsTable()
const G4String & GetSymbol() const
const G4String & GetName() const
void UpdateSymbMxLen(G4int len)
G4UnitsContainer & GetUnitsList()
void UpdateNameMxLen(G4int len)
G4int GetNameMxLen() const
G4int GetSymbMxLen() const
void export_G4UnitsTable()