A generic user-supplied uom_symbol converter.
The conversion formulas for float64 magnitudes.
Generic conversion alias formula that must be user-supplied, float64.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R8P), | intent(in) | :: | magnitude | Magnitude (of the quantity) to be converted. |
||
| logical, | intent(in), | optional | :: | inverse | Activate inverse conversion. |
Converted magnitude.
The conversion formulas for float32 magnitudes.
Generic conversion alias formula that must be user-supplied, float32.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R4P), | intent(in) | :: | magnitude | Magnitude (of the quantity) to be converted. |
||
| logical, | intent(in), | optional | :: | inverse | Activate inverse conversion. |
Converted magnitude.
converter = converter assignment.
converter = converter assignment.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(uom_converter), | intent(inout) | :: | lhs | Left hand side. |
||
| class(uom_converter), | intent(in) | :: | rhs | Right hand side. |
The conversion formulas.
User-supplied conversion formulas from dBm to mW (and viceversa), float64.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R8P), | intent(in) | :: | magnitude | Magnitude (of the quantity) to be converted. |
||
| logical, | intent(in), | optional | :: | inverse | Activate inverse conversion. |
Converted magnitude.
User-supplied conversion formulas from dBm to mW (and viceversa), float32.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R4P), | intent(in) | :: | magnitude | Magnitude (of the quantity) to be converted. |
||
| logical, | intent(in), | optional | :: | inverse | Activate inverse conversion. |
Converted magnitude.
Overloading = assignment.
converter = converter assignment.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(dBm_to_mW), | intent(inout) | :: | lhs | Left hand side. |
||
| class(uom_converter), | intent(in) | :: | rhs | Right hand side. |
type, abstract :: uom_converter
!< A generic user-supplied [[uom_symbol]] converter.
contains
! deferred methods
#ifdef r16p
procedure(conversion_float128), deferred, nopass :: convert_float128 !< The conversion formulas for float128 magnitudes.
#endif
procedure(conversion_float64), deferred, nopass :: convert_float64 !< The conversion formulas for float64 magnitudes.
procedure(conversion_float32), deferred, nopass :: convert_float32 !< The conversion formulas for float32 magnitudes.
procedure(assignment_converter), deferred, pass(lhs) :: assign_converter !< `converter = converter` assignment.
! generic methods
generic :: convert => &
#ifdef r16p
convert_float128, &
#endif
convert_float64, convert_float32 !< The conversion formulas.
! operators
generic :: assignment(=) => assign_converter !< Overloading `=` assignment.
endtype uom_converter