AMCAX Kernel 1.0.0.0
|
Class for SI Base Units. More...
#include <misc/ElectricCurrentUnit.hpp>
Public Member Functions | |
AMCAX_API | ElectricCurrentUnit () |
Default constructor. | |
AMCAX_API | ElectricCurrentUnit (const double multiplication) |
Construct a new ElectricCurrentUnit object with a multiplication. More... | |
AMCAX_API | ElectricCurrentUnit (const UnitPrefix prefix) |
Construct a new ElectricCurrentUnit object with a prefix. More... | |
AMCAX_API | ElectricCurrentUnit (const ElectricCurrentUnit &other) |
Copy constructor. More... | |
AMCAX_API | ElectricCurrentUnit (const ElectricCurrentUnit &&other) noexcept |
Move constructor. More... | |
AMCAX_API ElectricCurrentUnit & | operator= (const ElectricCurrentUnit &other) |
Copy assignment operator. More... | |
AMCAX_API ElectricCurrentUnit & | operator= (const ElectricCurrentUnit &&other) noexcept |
Move assignment operator. More... | |
AMCAX_API | ~ElectricCurrentUnit () override |
Destructor. | |
AMCAX_API ElectricCurrentUnit & | SetPrefix (const UnitPrefix prefix) |
Set the prefix of the unit. More... | |
AMCAX_API ElectricCurrentUnit & | SetMultiplication (const double multiplication) |
Set the multiplication of the unit. More... | |
AMCAX_API bool | operator== (const ElectricCurrentUnit &other) const |
If the ElectricCurrentUnit same as the other ElectricCurrentUnit. More... | |
AMCAX_API bool | operator!= (const ElectricCurrentUnit &other) const |
If the ElectricCurrentUnit different from the other ElectricCurrentUnit. More... | |
AMCAX_API bool | operator< (const ElectricCurrentUnit &other) const |
If the ElectricCurrentUnit less than the other ElectricCurrentUnit. More... | |
AMCAX_API bool | operator> (const ElectricCurrentUnit &other) const |
If the ElectricCurrentUnit greater than the other ElectricCurrentUnit. More... | |
AMCAX_API bool | operator<= (const ElectricCurrentUnit &other) const |
If the ElectricCurrentUnit less than or equal to the other ElectricCurrentUnit. More... | |
AMCAX_API bool | operator>= (const ElectricCurrentUnit &other) const |
If the ElectricCurrentUnit greater than or equal to the other ElectricCurrentUnit. More... | |
Public Member Functions inherited from AMCAX::AbstructUnit | |
AMCAX_API const UnitPrefix & | GetPrefix () const |
Get an immutable reference to the prefix of the unit. More... | |
AMCAX_API const double & | GetMultiplication () const |
Get the derived prefix of the unit. More... | |
virtual AMCAX_API double | ToBase (const double value=1.0) const |
Get the derived value of the unit. More... | |
AMCAX_API bool | IsEqual (const AbstructUnit &other, const double tol=1E-12) const |
If the AbstructUnit same as the other AbstructUnit within a tolerance. More... | |
AMCAX_API bool | IsEqualE (const AbstructUnit &other) const |
If the AbstructUnit same as the other AbstructUnit within the epsilon. More... | |
Class for SI Base Units.
AMCAX_API AMCAX::ElectricCurrentUnit::ElectricCurrentUnit | ( | const double | multiplication | ) |
Construct a new ElectricCurrentUnit object with a multiplication.
multiplication | How many base units are in the multiplication unit |
AMCAX_API AMCAX::ElectricCurrentUnit::ElectricCurrentUnit | ( | const UnitPrefix | prefix | ) |
Construct a new ElectricCurrentUnit object with a prefix.
prefix | The prefix of the unit |
AMCAX_API AMCAX::ElectricCurrentUnit::ElectricCurrentUnit | ( | const ElectricCurrentUnit & | other | ) |
Copy constructor.
other | The other ElectricCurrentUnit object |
|
noexcept |
Move constructor.
other | The other ElectricCurrentUnit object |
AMCAX_API bool AMCAX::ElectricCurrentUnit::operator!= | ( | const ElectricCurrentUnit & | other | ) | const |
If the ElectricCurrentUnit different from the other ElectricCurrentUnit.
other | The other ElectricCurrentUnit to compare with |
AMCAX_API bool AMCAX::ElectricCurrentUnit::operator< | ( | const ElectricCurrentUnit & | other | ) | const |
If the ElectricCurrentUnit less than the other ElectricCurrentUnit.
other | The other ElectricCurrentUnit to compare with |
AMCAX_API bool AMCAX::ElectricCurrentUnit::operator<= | ( | const ElectricCurrentUnit & | other | ) | const |
If the ElectricCurrentUnit less than or equal to the other ElectricCurrentUnit.
other | The other ElectricCurrentUnit to compare with |
|
noexcept |
Move assignment operator.
other | The other ElectricCurrentUnit object |
AMCAX_API ElectricCurrentUnit & AMCAX::ElectricCurrentUnit::operator= | ( | const ElectricCurrentUnit & | other | ) |
Copy assignment operator.
other | The other ElectricCurrentUnit object |
AMCAX_API bool AMCAX::ElectricCurrentUnit::operator== | ( | const ElectricCurrentUnit & | other | ) | const |
If the ElectricCurrentUnit same as the other ElectricCurrentUnit.
other | The other ElectricCurrentUnit to compare with |
AMCAX_API bool AMCAX::ElectricCurrentUnit::operator> | ( | const ElectricCurrentUnit & | other | ) | const |
If the ElectricCurrentUnit greater than the other ElectricCurrentUnit.
other | The other ElectricCurrentUnit to compare with |
AMCAX_API bool AMCAX::ElectricCurrentUnit::operator>= | ( | const ElectricCurrentUnit & | other | ) | const |
If the ElectricCurrentUnit greater than or equal to the other ElectricCurrentUnit.
other | The other ElectricCurrentUnit to compare with |
AMCAX_API ElectricCurrentUnit & AMCAX::ElectricCurrentUnit::SetMultiplication | ( | const double | multiplication | ) |
Set the multiplication of the unit.
multiplication | How many base units are in the multiplication unit |
AMCAX_API ElectricCurrentUnit & AMCAX::ElectricCurrentUnit::SetPrefix | ( | const UnitPrefix | prefix | ) |
Set the prefix of the unit.
prefix | The prefix of the unit |