dBm_to_mW Derived Type

type, public, extends(uom_converter) :: dBm_to_mW

type~~dbm_to_mw~~InheritsGraph type~dbm_to_mw dBm_to_mW type~uom_converter uom_converter type~uom_converter->type~dbm_to_mw
Help


Converter (user-supplied) from dBm to mW.


Source Code


Type-Bound Procedures

generic, public :: convert => convert_float64, convert_float32

The conversion formulas.

  • private pure function convert_float64(magnitude, inverse) result(converted)

    User-supplied conversion formulas from dBm to mW (and viceversa), float64.

    Arguments

    Type IntentOptional AttributesName
    real(kind=R8P), intent(in) :: magnitude

    Magnitude (of the quantity) to be converted.

    logical, intent(in), optional :: inverse

    Activate inverse conversion.

    Return Value real(kind=R8P)

    Converted magnitude.

  • private pure function convert_float32(magnitude, inverse) result(converted)

    User-supplied conversion formulas from dBm to mW (and viceversa), float32.

    Arguments

    Type IntentOptional AttributesName
    real(kind=R4P), intent(in) :: magnitude

    Magnitude (of the quantity) to be converted.

    logical, intent(in), optional :: inverse

    Activate inverse conversion.

    Return Value real(kind=R4P)

    Converted magnitude.

generic, public :: assignment(=) => assign_converter

Overloading = assignment.

  • private pure subroutine assign_converter(lhs, rhs)

    converter = converter assignment.

    Arguments

    Type IntentOptional AttributesName
    class(dBm_to_mW), intent(inout) :: lhs

    Left hand side.

    class(uom_converter), intent(in) :: rhs

    Right hand side.

procedure, public, nopass :: convert_float128

User-supplied conversion formulas from dBm to mW (and viceversa), float128.

  • private pure function convert_float128(magnitude, inverse) result(converted)

    User-supplied conversion formulas from dBm to mW (and viceversa), float128.

    Arguments

    Type IntentOptional AttributesName
    real(kind=R16P), intent(in) :: magnitude

    Magnitude (of the quantity) to be converted.

    logical, intent(in), optional :: inverse

    Activate inverse conversion.

    Return Value real(kind=R16P)

    Converted magnitude.

procedure, public, nopass :: convert_float64

User-supplied conversion formulas from dBm to mW (and viceversa), float128.

  • private pure function convert_float64(magnitude, inverse) result(converted)

    User-supplied conversion formulas from dBm to mW (and viceversa), float64.

    Arguments

    Type IntentOptional AttributesName
    real(kind=R8P), intent(in) :: magnitude

    Magnitude (of the quantity) to be converted.

    logical, intent(in), optional :: inverse

    Activate inverse conversion.

    Return Value real(kind=R8P)

    Converted magnitude.

procedure, public, nopass :: convert_float32

User-supplied conversion formulas from dBm to mW (and viceversa), float128.

  • private pure function convert_float32(magnitude, inverse) result(converted)

    User-supplied conversion formulas from dBm to mW (and viceversa), float32.

    Arguments

    Type IntentOptional AttributesName
    real(kind=R4P), intent(in) :: magnitude

    Magnitude (of the quantity) to be converted.

    logical, intent(in), optional :: inverse

    Activate inverse conversion.

    Return Value real(kind=R4P)

    Converted magnitude.

procedure, public, pass(lhs) :: assign_converter

converter = converter assignment.

  • private pure subroutine assign_converter(lhs, rhs)

    converter = converter assignment.

    Arguments

    Type IntentOptional AttributesName
    class(dBm_to_mW), intent(inout) :: lhs

    Left hand side.

    class(uom_converter), intent(in) :: rhs

    Right hand side.

Source Code

type, extends(uom_converter) :: dBm_to_mW
  !< Converter (user-supplied) from dBm to mW.
  contains
    procedure, nopass    :: convert_float128 !< User-supplied conversion formulas from dBm to mW (and viceversa), float128.
    procedure, nopass    :: convert_float64  !< User-supplied conversion formulas from dBm to mW (and viceversa), float128.
    procedure, nopass    :: convert_float32  !< User-supplied conversion formulas from dBm to mW (and viceversa), float128.
    procedure, pass(lhs) :: assign_converter !< `converter = converter` assignment.
endtype dBm_to_mW