AMCAX Kernel 1.0.0.0
|
Class for SI Base Units. More...
#include <misc/AmountOfSubstanceUnit.hpp>
Public Member Functions | |
AMCAX_API | AmountOfSubstanceUnit () |
Default constructor. | |
AMCAX_API | AmountOfSubstanceUnit (const double multiplication) |
Construct a new AmountOfSubstanceUnit object with a multiplication. More... | |
AMCAX_API | AmountOfSubstanceUnit (const UnitPrefix prefix) |
Construct a new AmountOfSubstanceUnit object with a prefix. More... | |
AMCAX_API | AmountOfSubstanceUnit (const AmountOfSubstanceUnit &other) |
Copy constructor. More... | |
AMCAX_API | AmountOfSubstanceUnit (const AmountOfSubstanceUnit &&other) noexcept |
Move constructor. More... | |
AMCAX_API AmountOfSubstanceUnit & | operator= (const AmountOfSubstanceUnit &other) |
Copy assignment operator. More... | |
AMCAX_API AmountOfSubstanceUnit & | operator= (const AmountOfSubstanceUnit &&other) noexcept |
Move assignment operator. More... | |
AMCAX_API | ~AmountOfSubstanceUnit () override |
Destructor. | |
AMCAX_API AmountOfSubstanceUnit & | SetPrefix (const UnitPrefix prefix) |
Set the prefix of the unit. More... | |
AMCAX_API AmountOfSubstanceUnit & | SetMultiplication (const double multiplication) |
Set the multiplication of the unit. More... | |
AMCAX_API bool | operator== (const AmountOfSubstanceUnit &other) const |
If the AmountOfSubstanceUnit same as the other AmountOfSubstanceUnit. More... | |
AMCAX_API bool | operator!= (const AmountOfSubstanceUnit &other) const |
If the AmountOfSubstanceUnit different from the other AmountOfSubstanceUnit. More... | |
AMCAX_API bool | operator< (const AmountOfSubstanceUnit &other) const |
If the AmountOfSubstanceUnit less than the other AmountOfSubstanceUnit. More... | |
AMCAX_API bool | operator> (const AmountOfSubstanceUnit &other) const |
If the AmountOfSubstanceUnit greater than the other AmountOfSubstanceUnit. More... | |
AMCAX_API bool | operator<= (const AmountOfSubstanceUnit &other) const |
If the AmountOfSubstanceUnit less than or equal to the other AmountOfSubstanceUnit. More... | |
AMCAX_API bool | operator>= (const AmountOfSubstanceUnit &other) const |
If the AmountOfSubstanceUnit greater than or equal to the other AmountOfSubstanceUnit. 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::AmountOfSubstanceUnit::AmountOfSubstanceUnit | ( | const double | multiplication | ) |
Construct a new AmountOfSubstanceUnit object with a multiplication.
multiplication | How many base units are in the multiplication unit |
AMCAX_API AMCAX::AmountOfSubstanceUnit::AmountOfSubstanceUnit | ( | const UnitPrefix | prefix | ) |
Construct a new AmountOfSubstanceUnit object with a prefix.
prefix | The prefix of the unit |
AMCAX_API AMCAX::AmountOfSubstanceUnit::AmountOfSubstanceUnit | ( | const AmountOfSubstanceUnit & | other | ) |
Copy constructor.
other | The other AmountOfSubstanceUnit object |
|
noexcept |
Move constructor.
other | The other AmountOfSubstanceUnit object |
AMCAX_API bool AMCAX::AmountOfSubstanceUnit::operator!= | ( | const AmountOfSubstanceUnit & | other | ) | const |
If the AmountOfSubstanceUnit different from the other AmountOfSubstanceUnit.
other | The other AmountOfSubstanceUnit to compare with |
AMCAX_API bool AMCAX::AmountOfSubstanceUnit::operator< | ( | const AmountOfSubstanceUnit & | other | ) | const |
If the AmountOfSubstanceUnit less than the other AmountOfSubstanceUnit.
other | The other AmountOfSubstanceUnit to compare with |
AMCAX_API bool AMCAX::AmountOfSubstanceUnit::operator<= | ( | const AmountOfSubstanceUnit & | other | ) | const |
If the AmountOfSubstanceUnit less than or equal to the other AmountOfSubstanceUnit.
other | The other AmountOfSubstanceUnit to compare with |
|
noexcept |
Move assignment operator.
other | The other AmountOfSubstanceUnit object |
AMCAX_API AmountOfSubstanceUnit & AMCAX::AmountOfSubstanceUnit::operator= | ( | const AmountOfSubstanceUnit & | other | ) |
Copy assignment operator.
other | The other AmountOfSubstanceUnit object |
AMCAX_API bool AMCAX::AmountOfSubstanceUnit::operator== | ( | const AmountOfSubstanceUnit & | other | ) | const |
If the AmountOfSubstanceUnit same as the other AmountOfSubstanceUnit.
other | The other AmountOfSubstanceUnit to compare with |
AMCAX_API bool AMCAX::AmountOfSubstanceUnit::operator> | ( | const AmountOfSubstanceUnit & | other | ) | const |
If the AmountOfSubstanceUnit greater than the other AmountOfSubstanceUnit.
other | The other AmountOfSubstanceUnit to compare with |
AMCAX_API bool AMCAX::AmountOfSubstanceUnit::operator>= | ( | const AmountOfSubstanceUnit & | other | ) | const |
If the AmountOfSubstanceUnit greater than or equal to the other AmountOfSubstanceUnit.
other | The other AmountOfSubstanceUnit to compare with |
AMCAX_API AmountOfSubstanceUnit & AMCAX::AmountOfSubstanceUnit::SetMultiplication | ( | const double | multiplication | ) |
Set the multiplication of the unit.
multiplication | How many base units are in the multiplication unit |
AMCAX_API AmountOfSubstanceUnit & AMCAX::AmountOfSubstanceUnit::SetPrefix | ( | const UnitPrefix | prefix | ) |
Set the prefix of the unit.
prefix | The prefix of the unit |