Real quantity with associated unit of measure.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=RKP), | public | :: | magnitude | = | 0._RKP | Magnitude of the quantity. |
|
| class(uom), | public, | allocatable | :: | unit | Unit of measure of the quantity. |
||
| character(len=:), | public, | allocatable | :: | name | Quantity name. |
Ovearloading qreal name with a creator function.
Create an instance of qreal quantity.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=RKP), | intent(in), | optional | :: | magnitude | Magnitude of the quantity. |
|
| class(uom), | intent(in), | optional | :: | unit | Unit of measure of the quantity. |
|
| character(len=*), | intent(in), | optional | :: | name | Quantity name. |
The quantity.
Allocate unit.
allocate_unit.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(inout) | :: | self | The quantity. |
Check if the quantity has defined name.
Check if the unit has been defined.
Check if the unit has been defined.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | self | The quantity. |
Unit definition status.
Set quantity.
Set quantity.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(inout) | :: | self | The quantity. |
||
| real(kind=RKP), | intent(in), | optional | :: | magnitude | Magnitude of the quantity. |
|
| class(uom), | intent(in), | optional | :: | unit | Unit of measure of the quantity. |
|
| character(len=*), | intent(in), | optional | :: | name | Quantity name. |
Return a string representation of the quantity with unit symbol.
Return a string representation of the quantity with unit symbol.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | self | The quantity. |
||
| character(len=*), | intent(in), | optional | :: | format | Format to string magnitude. |
|
| logical, | intent(in), | optional | :: | with_dimensions | Flag to activate dimensions printing. |
|
| logical, | intent(in), | optional | :: | with_aliases | Flag to activate aliases printing. |
|
| logical, | intent(in), | optional | :: | with_name | Flag to activate name printing. |
|
| logical, | intent(in), | optional | :: | compact_reals | Flag to activate real numbers compacting. |
Raw characters data.
Convert quantity with respect another unit if its unit has a conversion alias.
Convert quantity with respect another unit if its unit has a conversion alias.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | self | The quantity. |
||
| type(uom), | intent(in) | :: | unit | Unit of conversion. |
Quantity converted.
Unset quantity.
Overloading = assignment.
qreal = qreal assignment.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(inout) | :: | lhs | Left hand side. |
||
| type(qreal), | intent(in) | :: | rhs | Right hand side. |
Overloading + operator.
qreal + qreal operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| type(qreal), | intent(in) | :: | rhs | Right hand side. |
Operator result.
+ qreal unary operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | self | The quantity. |
Operator result.
Overloading / operator.
qreal / qreal operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| type(qreal), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal / real(R8P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| real(kind=R8P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal / real(R4P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| real(kind=R4P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal / integer(I8P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I8P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal / integer(I4P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I4P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal / integer(I2P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I2P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal / integer(I1P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I1P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
Overloading * operator.
qreal * qreal operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| type(qreal), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal * real(R8P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| real(kind=R8P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal * real(R4P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| real(kind=R4P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal * integer(I8P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I8P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal * integer(I4P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I4P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal * integer(I2P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I2P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal * integer(I1P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I1P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
real(R8P) * qreal operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R8P), | intent(in) | :: | lhs | Left hand side. |
||
| class(qreal), | intent(in) | :: | rhs | Right hand side. |
Operator result.
real(R4P) * qreal operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R4P), | intent(in) | :: | lhs | Left hand side. |
||
| class(qreal), | intent(in) | :: | rhs | Right hand side. |
Operator result.
integer(I8P) * qreal operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=I8P), | intent(in) | :: | lhs | Left hand side. |
||
| class(qreal), | intent(in) | :: | rhs | Right hand side. |
Operator result.
integer(I4P) * qreal operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=I4P), | intent(in) | :: | lhs | Left hand side. |
||
| class(qreal), | intent(in) | :: | rhs | Right hand side. |
Operator result.
integer(I2P) * qreal operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=I2P), | intent(in) | :: | lhs | Left hand side. |
||
| class(qreal), | intent(in) | :: | rhs | Right hand side. |
Operator result.
integer(I1P) * qreal operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=I1P), | intent(in) | :: | lhs | Left hand side. |
||
| class(qreal), | intent(in) | :: | rhs | Right hand side. |
Operator result.
Overloading - operator.
qreal - qreal operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| type(qreal), | intent(in) | :: | rhs | Right hand side. |
Operator result.
- qreal unary operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | self | The quantity. |
Operator result.
Overloading ** operator.
qreal ** real(R8P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| real(kind=R8P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal ** real(R4P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| real(kind=R4P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal ** integer(I8P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I8P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal ** integer(I4P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I4P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal ** integer(I2P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I2P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
qreal ** integer(I1P) operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | lhs | Left hand side. |
||
| integer(kind=I1P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
Overloading == operator.
Overloading /= operator.
Check if qreal is not equal with another one.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | self | The unit. |
||
| type(qreal), | intent(in) | :: | other | The other unit. |
Check result.
Check if qreal is equal with another one.
Check if qreal is not equal with another one.
Check if qreal is not equal with another one.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(in) | :: | self | The unit. |
||
| type(qreal), | intent(in) | :: | other | The other unit. |
Check result.
qreal = qreal assignment.
qreal = qreal assignment.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(qreal), | intent(inout) | :: | lhs | Left hand side. |
||
| type(qreal), | intent(in) | :: | rhs | Right hand side. |
qreal + qreal operator.
+ qreal unary operator.
qreal / qreal operator.
qreal / real(R16P) operator.
qreal / real(R8P) operator.
qreal / real(R4P) operator.
qreal / integer(I8P) operator.
qreal / integer(I4P) operator.
qreal / integer(I2P) operator.
qreal / integer(I1P) operator.
qreal * qreal operator.
qreal * real(R16P) operator.
qreal * real(R8P) operator.
qreal * real(R4P) operator.
qreal * integer(I8P) operator.
qreal * integer(I4P) operator.
qreal * integer(I2P) operator.
qreal * integer(I1P) operator.
real(R16P) * qreal operator.
real(R8P) * qreal operator.
real(R4P) * qreal operator.
integer(I8P) * qreal operator.
integer(I4P) * qreal operator.
integer(I2P) * qreal operator.
integer(I1P) * qreal operator.
qreal - qreal operator.
- qreal unary operator.
qreal ** real(R16P) operator.
qreal ** real(R8P) operator.
qreal ** real(R4P) operator.
qreal ** integer(I8P) operator.
qreal ** integer(I4P) operator.
qreal ** integer(I2P) operator.
qreal ** integer(I1P) operator.