|
DLG4::VolumeBuilders
A fluent interface for Geant4 geometry definition.
|
Classes | |
| class | Density |
| class | Length |
| class | Mass |
| class | Unit |
| class | Unit3Vec |
| struct | UnitOrValue |
| struct | UnitTag |
| class | Volume |
Typedefs | |
| using | Length3Vec = Unit3Vec |
| template<typename T , typename U > | |
| using | ResultType = std::conditional_t< std::is_base_of_v< UnitTag, T >, T, U > |
| using | UnitlessG4Transform3D = G4Transform3D |
Functions | |
| Density | operator/ (Mass m, Volume v) |
| template<typename T , typename U , typename = std::enable_if_t<std::is_base_of_v<UnitTag, T> != std::is_base_of_v<UnitTag, U>>> | |
| auto | operator* (const T &a, const U &b) |
| template<typename T , typename U , typename = std::enable_if_t<std::is_base_of_v<UnitTag, T> && !std::is_base_of_v<UnitTag, U>>> | |
| auto | operator/ (const T &a, const U &b) |
| template<typename T , typename = std::enable_if_t<std::is_base_of_v<UnitTag, T>>> | |
| T | operator+ (const T &a, const T &b) |
| template<typename T , typename = std::enable_if_t<std::is_base_of_v<UnitTag, T>>> | |
| T | operator- (const T &a, const T &b) |
| Unit3Vec | operator* (const G4ThreeVector &v, const Length &u) |
| Unit3Vec | operator* (const Unit3Vec &v, G4double scalar) |
| Unit3Vec | operator* (G4double scalar, const Unit3Vec &v) |
| Unit3Vec | operator/ (const Unit3Vec &v, G4double scalar) |
| template<typename T > | |
| void | SetGlobalDefaultUnit (T unit) |
Variables | |
| template<typename T > | |
| G4double | global_default_unit = 1.0 |
Typesafe units!! No accidental mixing values and units.
| typedef Unit3Vec Length3Vec |
A 3 vector that is scalable with/to Units.
Definition at line 132 of file DLG4Units.hh.
| using ResultType = std::conditional_t<std::is_base_of_v<UnitTag, T>, T, U> |
Definition at line 418 of file DLG4Units.hh.
| using UnitlessG4Transform3D = G4Transform3D |
Definition at line 545 of file DLG4Units.hh.
Definition at line 528 of file DLG4Units.hh.
|
inline |
Definition at line 423 of file DLG4Units.hh.
Definition at line 532 of file DLG4Units.hh.
Definition at line 537 of file DLG4Units.hh.
|
inline |
Definition at line 438 of file DLG4Units.hh.
|
inline |
Definition at line 445 of file DLG4Units.hh.
|
inline |
Definition at line 431 of file DLG4Units.hh.
Definition at line 541 of file DLG4Units.hh.
Definition at line 366 of file DLG4Units.hh.
|
inline |
Definition at line 137 of file DLG4Units.hh.