43 class_<G4UnitsTable>(
"G4UnitsTable",
"Units Table")
47 class_<G4UnitsContainer>(
"G4UnitsContainer",
"Units Container")
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))
G4int GetNameMxLen() const
static void BuildUnitsTable()
const G4String & GetCategory() const
G4int GetSymbMxLen() const
const G4String & GetSymbol() const
G4UnitsContainer & GetUnitsList()
static G4double GetValueOf(const G4String &)
void UpdateSymbMxLen(G4int len)
const G4String & GetName() const
static G4UnitsTable & GetUnitsTable()
static G4String GetCategory(const G4String &)
static void PrintUnitsTable()
const G4String & GetName() const
G4double GetValue() const
void UpdateNameMxLen(G4int len)
size_t GetIndexOfCategory() const