|
Dev Essential
1.6.3
|
datamodel for the refUnit More...
#include <datamodel_units.h>
Public Member Functions | |
| RefUnit () | |
| default CTOR | |
| RefUnit (const RefUnit &)=default | |
| copy CTOR | |
| RefUnit (RefUnit &&)=default | |
| move CTOR | |
| RefUnit & | operator= (const RefUnit &)=default |
| copy assignment operator | |
| RefUnit & | operator= (RefUnit &&)=default |
| move assignment operator | |
| RefUnit (std::string unit_name, int32_t power, std::string prefix_name) | |
| CTOR. | |
| bool | operator== (const RefUnit &other) const |
| equality operator. | |
| bool | operator!= (const RefUnit &other) const |
| non equality operator. | |
| const std::string & | getUnitName () const |
| Get the Unit Name. | |
| int32_t | getPower () const |
| Get the Power. | |
| const std::string & | getPrefixName () const |
| Get the Prefix Name. | |
datamodel for the refUnit
| ddl::dd::datamodel::Unit::RefUnit::RefUnit | ( | std::string | unit_name, |
| int32_t | power, | ||
| std::string | prefix_name ) |
CTOR.
| unit_name | the refunit name (must be a base unit!) |
| power | the power of the refunit |
| prefix_name | the prefix name (must be a unit prefix) |
| int32_t ddl::dd::datamodel::Unit::RefUnit::getPower | ( | ) | const |
Get the Power.
| const std::string & ddl::dd::datamodel::Unit::RefUnit::getPrefixName | ( | ) | const |
Get the Prefix Name.
| const std::string & ddl::dd::datamodel::Unit::RefUnit::getUnitName | ( | ) | const |
Get the Unit Name.
| bool ddl::dd::datamodel::Unit::RefUnit::operator!= | ( | const RefUnit & | other | ) | const |
non equality operator.
| other | the other refunit to compare this refunit to. |
copy assignment operator
move assignment operator
| bool ddl::dd::datamodel::Unit::RefUnit::operator== | ( | const RefUnit & | other | ) | const |
equality operator.
| other | the other refunit to compare this refunit to. |