AMCAX Kernel 1.0.0.0
|
Class for representing a descriptive representation item. More...
#include <step/repitem/MeasureRepItem.hpp>
Public Member Functions | |
AMCAX_API | MeasureRepItem () |
Default constructor. | |
AMCAX_API | MeasureRepItem (const std::string &name, const double &value, const SIUnit &unit) |
Constructor. More... | |
AMCAX_API | MeasureRepItem (const MeasureRepItem &other) |
Copy constructor. More... | |
AMCAX_API | MeasureRepItem (MeasureRepItem &&other) noexcept |
Move constructor. More... | |
AMCAX_API MeasureRepItem & | operator= (const MeasureRepItem &other) |
Copy assignment operator. More... | |
AMCAX_API MeasureRepItem & | operator= (MeasureRepItem &&other) noexcept |
Move assignment operator. More... | |
AMCAX_API | ~MeasureRepItem () override |
Destructor. | |
AMCAX_API MeasureRepItem & | SetName (const std::string &name) |
Set the name of the descriptive representation item. More... | |
AMCAX_API const double & | GetValue () const |
Get an immutable reference to the value of the measure. More... | |
AMCAX_API MeasureRepItem & | SetValue (const double &value) |
Set the value of the measure representation item. More... | |
AMCAX_API const SIUnit & | GetUnit () const |
Get an immutable reference to the unit of the measure. More... | |
AMCAX_API SIUnit & | Unit () |
Get an mutable reference to the unit of the measure. More... | |
AMCAX_API MeasureRepItem & | SetUnit (const SIUnit &unit) |
Set the unit of the measure representation item. More... | |
AMCAX_API bool | operator== (const MeasureRepItem &other) const |
If the MeasureRepItem same as the other MeasureRepItem. More... | |
AMCAX_API bool | operator!= (const MeasureRepItem &other) const |
If the MeasureRepItem different from the other MeasureRepItem. More... | |
AMCAX_API bool | operator< (const MeasureRepItem &other) const |
If the MeasureRepItem less than the other MeasureRepItem. More... | |
AMCAX_API bool | operator> (const MeasureRepItem &other) const |
If the MeasureRepItem greater than the other MeasureRepItem. More... | |
AMCAX_API bool | operator<= (const MeasureRepItem &other) const |
If the MeasureRepItem less than or equal to the other MeasureRepItem. More... | |
AMCAX_API bool | operator>= (const MeasureRepItem &other) const |
If the MeasureRepItem greater than or equal to the other MeasureRepItem. More... | |
Public Member Functions inherited from AMCAX::STEP::AbstractRepItem | |
AMCAX_API const std::string & | GetName () const |
Get an immutable reference to the name of the representation item. More... | |
Class for representing a descriptive representation item.
AMCAX_API AMCAX::STEP::MeasureRepItem::MeasureRepItem | ( | const std::string & | name, |
const double & | value, | ||
const SIUnit & | unit | ||
) |
Constructor.
name | The name of the descriptive representation item |
value | The value of the measure |
unit | The unit of the measure |
AMCAX_API AMCAX::STEP::MeasureRepItem::MeasureRepItem | ( | const MeasureRepItem & | other | ) |
Copy constructor.
other | The other MeasureRepItem to copy from |
|
noexcept |
Move constructor.
other | The other MeasureRepItem to move from |
Get an immutable reference to the unit of the measure.
AMCAX_API const double & AMCAX::STEP::MeasureRepItem::GetValue | ( | ) | const |
Get an immutable reference to the value of the measure.
AMCAX_API bool AMCAX::STEP::MeasureRepItem::operator!= | ( | const MeasureRepItem & | other | ) | const |
If the MeasureRepItem different from the other MeasureRepItem.
other | The other MeasureRepItem to compare with |
AMCAX_API bool AMCAX::STEP::MeasureRepItem::operator< | ( | const MeasureRepItem & | other | ) | const |
If the MeasureRepItem less than the other MeasureRepItem.
other | The other MeasureRepItem to compare with |
AMCAX_API bool AMCAX::STEP::MeasureRepItem::operator<= | ( | const MeasureRepItem & | other | ) | const |
If the MeasureRepItem less than or equal to the other MeasureRepItem.
other | The other MeasureRepItem to compare with |
AMCAX_API MeasureRepItem & AMCAX::STEP::MeasureRepItem::operator= | ( | const MeasureRepItem & | other | ) |
Copy assignment operator.
other | The other MeasureRepItem to copy from |
|
noexcept |
Move assignment operator.
other | The other MeasureRepItem to move from |
AMCAX_API bool AMCAX::STEP::MeasureRepItem::operator== | ( | const MeasureRepItem & | other | ) | const |
If the MeasureRepItem same as the other MeasureRepItem.
other | The other MeasureRepItem to compare with |
AMCAX_API bool AMCAX::STEP::MeasureRepItem::operator> | ( | const MeasureRepItem & | other | ) | const |
If the MeasureRepItem greater than the other MeasureRepItem.
other | The other MeasureRepItem to compare with |
AMCAX_API bool AMCAX::STEP::MeasureRepItem::operator>= | ( | const MeasureRepItem & | other | ) | const |
If the MeasureRepItem greater than or equal to the other MeasureRepItem.
other | The other MeasureRepItem to compare with |
AMCAX_API MeasureRepItem & AMCAX::STEP::MeasureRepItem::SetName | ( | const std::string & | name | ) |
Set the name of the descriptive representation item.
name | The name of the descriptive representation item |
AMCAX_API MeasureRepItem & AMCAX::STEP::MeasureRepItem::SetUnit | ( | const SIUnit & | unit | ) |
Set the unit of the measure representation item.
unit | The unit of the measure |
AMCAX_API MeasureRepItem & AMCAX::STEP::MeasureRepItem::SetValue | ( | const double & | value | ) |
Set the value of the measure representation item.
value | The value of the measure |
Get an mutable reference to the unit of the measure.