|
swift
|
Physical unit temperature. More...
#include <temperature.h>
Public Member Functions | |
| CTemperature () | |
| Default constructor. | |
| CTemperature (double value, const CTemperatureUnit &unit) | |
| Init by double value. | |
| CTemperature (const QString &unitString) | |
| Public Member Functions inherited from swift::misc::physical_quantities::CPhysicalQuantity< CTemperatureUnit, CTemperature > | |
| const CTemperatureUnit & | getUnit () const |
| Unit. | |
| void | setUnit (const CTemperatureUnit &unit) |
| Simply set unit, do no calclulate conversion. | |
| void | setUnitBySymbol (const QString &unitName) |
| Set unit by string. | |
| QString | getUnitSymbol () const |
| Unit. | |
| CTemperature & | switchUnit (const CTemperatureUnit &newUnit) |
| Change unit, and convert value to maintain the same quantity. | |
| CTemperature | switchedUnit (const CTemperatureUnit &newUnit) const |
| Return copy with switched unit. | |
| bool | isNull () const |
| Is quantity null? | |
| void | setNull () |
| Set null. | |
| double | value (CTemperatureUnit unit) const |
| Value in given unit. | |
| void | setCurrentUnitValue (double value) |
| Set value in current unit. | |
| int | valueInteger (CTemperatureUnit unit) const |
| As integer value. | |
| QString | valueIntegerAsString (CTemperatureUnit unit) const |
| As integer value. | |
| bool | isInteger () const |
| Is value an integer. | |
| double | valueRounded (CTemperatureUnit unit, int digits=-1) const |
| Rounded value in given unit. | |
| QString | valueRoundedAsString (CTemperatureUnit unit, int digits=-1) const |
| Rounded value in given unit. | |
| QString | valueRoundedWithUnit (const CTemperatureUnit &unit, int digits=-1, bool withGroupSeparator=false, bool i18n=false) const |
| Value to QString with the given unit, e.g. "5.00m". | |
| void | roundToEpsilon () |
| Round current value in current unit to epsilon. | |
| void | setValueSameUnit (double value) |
| Change value without changing unit. | |
| void | addValueSameUnit (double value) |
| Add to the value in the current unit. | |
| void | substractValueSameUnit (double value) |
| Substract from the value in the current unit. | |
| CPhysicalQuantity & | operator*= (double multiply) |
| Multiply operator *=. | |
| CPhysicalQuantity & | operator/= (double divide) |
| Divide operator /=. | |
| CTemperature | operator* (double multiply) const |
| Operator *. | |
| CTemperature | operator/ (double divide) const |
| Operator /. | |
| CTemperature | operator- () const |
| Unary operator -. | |
| CPhysicalQuantity & | operator+= (const CPhysicalQuantity &other) |
| Plus operator +=. | |
| CPhysicalQuantity & | operator-= (const CPhysicalQuantity &other) |
| Minus operator-=. | |
| bool | isZeroEpsilonConsidered () const |
| Quantity value <= epsilon. | |
| bool | isPositiveWithEpsilonConsidered () const |
| Value >= 0 epsilon considered. | |
| bool | isNegativeWithEpsilonConsidered () const |
| Value <= 0 epsilon considered. | |
| const CTemperature & | makePositive () |
| Make value always positive. | |
| const CTemperature & | makeNegative () |
| Make value always negative. | |
| CTemperature | abs () const |
| Absolute value (always >=0). | |
| void | marshallToDbus (QDBusArgument &argument) const |
| Marshall without begin/endStructure, for when composed within another object. | |
| void | unmarshallFromDbus (const QDBusArgument &argument) |
| Unmarshall without begin/endStructure, for when composed within another object. | |
| void | marshalToDataStream (QDataStream &stream) const |
| Marshal a value to a QDataStream. | |
| void | unmarshalFromDataStream (QDataStream &stream) |
| Unmarshal a value from a QDataStream. | |
| size_t | getValueHash () const |
| qHash overload, needed for storing value in a QSet. | |
| QJsonObject | toJson () const |
| Cast to JSON object. | |
| void | convertFromJson (const QJsonObject &json) |
| Assign from JSON object. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const CTemperature &pq) const |
| Compare for index. | |
| QString | convertToQString (bool i18n=false) const |
| Cast as QString. | |
| void | parseFromString (const QString &value) |
| Parse value from string. | |
| Public Member Functions inherited from swift::misc::mixin::Index< CTemperature > | |
| CPropertyIndexList | apply (const CPropertyIndexVariantMap &indexMap, bool skipEqualValues=false) |
| Update by variant map. | |
| void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const CTemperature &compareValue) const |
| Compare for index. | |
| bool | equalsPropertyByIndex (const QVariant &compareValue, CPropertyIndexRef index) const |
| Is given variant equal to value of property index? | |
| Public Member Functions inherited from swift::misc::mixin::MetaType< CTemperature > | |
| int | getMetaTypeId () const |
| Returns the Qt meta type ID of this object. | |
| QString | getClassName () const |
| Class name. | |
| bool | isA (int metaTypeId) const |
| Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses. | |
| Public Member Functions inherited from swift::misc::mixin::String< CTemperature > | |
| QString | toQString (bool i18n=false) const |
| Cast as QString. | |
| std::string | toStdString (bool i18n=false) const |
| To std string. | |
| QString | stringForStreaming () const |
| String for streaming operators. | |
| Public Member Functions inherited from swift::misc::mixin::Icon< CPhysicalQuantity< CTemperatureUnit, CTemperature > > | |
| CIcons::CIcons::StandardIconUnknown16 | toIcon () const |
| As icon, not implemented by all classes. | |
Physical unit temperature.
Definition at line 18 of file temperature.h.
|
inline |
Default constructor.
Definition at line 22 of file temperature.h.
|
inline |
Init by double value.
Definition at line 25 of file temperature.h.
|
inline |
Definition at line 28 of file temperature.h.