#include <DLG4Units.hh>
Definition at line 353 of file DLG4Units.hh.
◆ Volume() [1/2]
Definition at line 362 of file DLG4Units.hh.
std::optional< G4double > NativeValue_
◆ Volume() [2/2]
◆ CheckUnit()
| void CheckUnit |
( |
const G4String & |
context | ) |
const |
|
inlineinherited |
Definition at line 271 of file DLG4Units.hh.
271 {
273 if (!(NativeValue_ > 0.0)) {
274 G4Exception(context, "InvalidScale", FatalException,
275 "\n Attempted to apply a negative Unit\n");
276 exit(1);
277 }
278 }
void CheckValue(const G4String &context) const
◆ CheckValue()
| void CheckValue |
( |
const G4String & |
context | ) |
const |
|
inlineinherited |
Definition at line 260 of file DLG4Units.hh.
260 {
261
262 volatile bool engagement_flag =
NativeValue_.has_value();
263 if (!engagement_flag) {
264
265 G4Exception(context, "InvalidScale", FatalException,
266 "\n Attempted to use a Unit (or measure) before setting it;\n");
267 exit(1);
268 }
269 }
◆ FromNative()
| static Volume FromNative |
( |
G4double |
native_value | ) |
|
|
inlinestaticinherited |
Definition at line 232 of file DLG4Units.hh.
232{ return T(native_value); }
◆ GetGlobalDefault()
| static Volume GetGlobalDefault |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 258 of file DLG4Units.hh.
258{ return T(global_default_unit<T>); }
◆ cm3
◆ InDefaultUnits
| DefaultUnitsProxy InDefaultUnits |
|
inherited |
◆ InUnits
| ScalableProxy<Volume > InUnits |
|
inherited |
◆ mL
◆ Native
◆ native
◆ NativeValue_
| std::optional<G4double > NativeValue_ |
|
protectedinherited |
The documentation for this class was generated from the following file: