datamodel for the refUnit
More...
|
std::string | _unit_name = {} |
|
int32_t | _power = {} |
|
std::string | _prefix_name = {} |
|
datamodel for the refUnit
Definition at line 377 of file datamodel_units.h.
◆ RefUnit()
RefUnit |
( |
const std::string & |
unit_name, |
|
|
int32_t |
power, |
|
|
const std::string & |
prefix_name |
|
) |
| |
CTOR.
- Parameters
-
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) |
◆ getPower()
int32_t getPower |
( |
| ) |
const |
Get the Power.
- Returns
- int32_t
◆ getPrefixName()
const std::string& getPrefixName |
( |
| ) |
const |
Get the Prefix Name.
- Returns
- const std::string&
◆ getUnitName()
const std::string& getUnitName |
( |
| ) |
const |
Get the Unit Name.
- Returns
- const std::string&
◆ operator!=()
bool operator!= |
( |
const RefUnit & |
other | ) |
const |
non equality operator.
- Parameters
-
other | the other refunit to compare this refunit to. |
- Returns
- false the refunit are equal.
-
true the refunit are not equal.
◆ operator=() [1/2]
copy assignment operator
- Returns
- RefUnit&
◆ operator=() [2/2]
move assignment operator
- Returns
- RefUnit&
◆ operator==()
bool operator== |
( |
const RefUnit & |
other | ) |
const |
equality operator.
- Parameters
-
other | the other refunit to compare this refunit to. |
- Returns
- true the refunit are equal.
-
false the refunit are not equal.