Class for measurement.
More...
#include <misc/Measurement.hpp>
|
double | _Value {0.0} |
|
SIUnit | _Unit |
|
◆ Measurement() [1/3]
AMCAX_API AMCAX::Measurement::Measurement |
( |
const double |
value, |
|
|
const SIUnit & |
unit |
|
) |
| |
Construct a new Measurement object with a value and a unit.
- Parameters
-
value | The value of the measurement |
unit | The unit of the measurement |
◆ Measurement() [2/3]
Copy constructor.
- Parameters
-
◆ Measurement() [3/3]
Move constructor.
- Parameters
-
◆ GetUnit()
Get an immutable reference to the unit of the measurement.
- Returns
- An immutable reference to the unit of the measurement
◆ GetValue()
AMCAX_API const double & AMCAX::Measurement::GetValue |
( |
| ) |
const |
Get an immutable reference to the value of the measurement.
- Returns
- An immutable reference to the value of the measurement
◆ operator!=()
If the measurement is not same as the other measurement.
- Parameters
-
other | The other measurement |
- Returns
- True if the measurement is not same as the other measurement
◆ operator<()
If the measurement is less than the other measurement.
- Parameters
-
other | The other measurement |
- Returns
- True if the measurement is less than the other measurement
◆ operator<=()
If the measurement is less than or equal to the other measurement.
- Parameters
-
other | The other measurement |
- Returns
- True if the measurement is less than or equal to the other measurement
◆ operator=() [1/4]
Assign a value to the measurement.
- Parameters
-
- Returns
- The measurement object
◆ operator=() [2/4]
Copy assignment operator.
- Parameters
-
◆ operator=() [3/4]
Assign a SetUnit to the measurement.
- Parameters
-
- Returns
- The measurement object
◆ operator=() [4/4]
Move assignment operator.
- Parameters
-
◆ operator==()
If the measurement is same as the other measurement.
- Parameters
-
other | The other measurement |
- Returns
- True if the measurement is same as the other measurement
◆ operator>()
If the measurement is greater than the other measurement.
- Parameters
-
other | The other measurement |
- Returns
- True if the measurement is greater than the other measurement
◆ operator>=()
If the measurement is greater than or equal to the other measurement.
- Parameters
-
other | The other measurement |
- Returns
- True if the measurement is greater than or equal to the other measurement
◆ SetUnit()
Get a mutable reference to the unit of the measurement.
- Returns
- A mutable reference to the unit of the measurement
◆ SetValue()
AMCAX_API double & AMCAX::Measurement::SetValue |
( |
| ) |
|
Get a mutable reference to the value of the measurement.
- Returns
- A mutable reference to the value of the measurement
The documentation for this class was generated from the following file: