|
ACF $AcfVersion:0$
|
Simple implementation of double value manipulator without rounding or quantization. More...
#include <CDoubleManip.h>
Public Member Functions | |
| CDoubleManip () | |
| char | GetPointChar () const |
| Get point character. | |
| void | SetPointChar (char pointChar) |
| Set point character. | |
| virtual int | GetPrecision () const override |
| Get number of digits after point. | |
| virtual double | GetRounded (const double &value) const override |
| Get the nearest value rounded used this arithmetik. | |
| virtual bool | AreValuesEqual (const double &value1, const double &value2) const override |
| Compare two values and check, if there are equal. | |
| virtual bool | IsSmaller (const double &value1, const double &value2) const override |
| Compare two values and check, if first one is smaller as the second. | |
| virtual bool | IsSmallerEqual (const double &value1, const double &value2) const override |
| Compare two values and check, if first one is smaller or equal as the second. | |
| virtual double | GetSmallerValue (const double &value) const override |
| Return biggest value smaller that specified one. | |
| virtual double | GetBiggerValue (const double &value) const override |
| Return smallest value bigger that specified one. | |
| virtual QString | GetString (const double &value) const override |
| Get this value as string. | |
| virtual bool | GetParsed (const QString &text, double &result) const override |
| Get value converted from string. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Protected Types | |
| enum | { PRECISION = 6 } |
Simple implementation of double value manipulator without rounding or quantization.
CDoubleManip provides basic manipulation and formatting of double precision values without any rounding or quantization. It implements the IDoubleManip interface, offering string conversion, comparison, and formatting operations with configurable decimal point character. This class is the base for more specialized manipulators like CFixedPointManip.
Use CDoubleManip when:
Use CFixedPointManip when:
This class is typically used by:
Definition at line 88 of file CDoubleManip.h.
|
protected |
| Enumerator | |
|---|---|
| PRECISION | |
Definition at line 117 of file CDoubleManip.h.
| imath::CDoubleManip::CDoubleManip | ( | ) |
|
inlineoverridevirtual |
Compare two values and check, if there are equal.
| value1 | first value. |
| value2 | second value. |
Implements imath::TIValueManip< double >.
Reimplemented in imath::CFixedPointManip.
Definition at line 148 of file CDoubleManip.h.
|
inlineoverridevirtual |
Return smallest value bigger that specified one.
Implements imath::TIValueManip< double >.
Reimplemented in imath::CFixedPointManip.
Definition at line 172 of file CDoubleManip.h.
|
overridevirtual |
Get value converted from string.
| text | input string. |
| result | result value. |
Implements imath::TIValueManip< double >.
Reimplemented in imath::CComplexDoubleManip, and imath::CFixedPointManip.
|
inline |
Get point character.
Definition at line 128 of file CDoubleManip.h.
|
overridevirtual |
Get number of digits after point.
Implements imath::IDoubleManip.
Reimplemented in imath::CFixedPointManip.
|
inlineoverridevirtual |
Get the nearest value rounded used this arithmetik.
Implements imath::TIValueManip< double >.
Reimplemented in imath::CFixedPointManip.
Definition at line 142 of file CDoubleManip.h.
|
inlineoverridevirtual |
Return biggest value smaller that specified one.
Implements imath::TIValueManip< double >.
Reimplemented in imath::CFixedPointManip.
Definition at line 166 of file CDoubleManip.h.
|
overridevirtual |
Get this value as string.
| value | value will be converted. |
Implements imath::TIValueManip< double >.
Reimplemented in imath::CComplexDoubleManip, and imath::CFixedPointManip.
|
inlineoverridevirtual |
Compare two values and check, if first one is smaller as the second.
| value1 | first value. |
| value2 | second value. |
Implements imath::TIValueManip< double >.
Reimplemented in imath::CFixedPointManip.
Definition at line 154 of file CDoubleManip.h.
|
inlineoverridevirtual |
Compare two values and check, if first one is smaller or equal as the second.
| value1 | first value. |
| value2 | second value. |
Implements imath::TIValueManip< double >.
Reimplemented in imath::CFixedPointManip.
Definition at line 160 of file CDoubleManip.h.
|
inline |
Set point character.
Definition at line 134 of file CDoubleManip.h.