![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Simple implementation of imath::IDoubleManip
interface for double values without rounding.
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 |
Get number of digits after point. | |
virtual double | GetRounded (const double &value) const |
Get the nearest value rounded used this arithmetik. | |
virtual bool | IsEqual (const double &value1, const double &value2) const |
Compare two values and check, if there are equal. | |
virtual bool | IsSmaller (const double &value1, const double &value2) const |
Compare two values and check, if first one is smaller as the second. | |
virtual bool | IsSmallerEqual (const double &value1, const double &value2) const |
Compare two values and check, if first one is smaller or equal as the second. | |
virtual double | GetSmallerValue (const double &value) const |
Return biggest value smaller that specified one. | |
virtual double | GetBiggerValue (const double &value) const |
Return smallest value bigger that specified one. | |
virtual QString | GetString (const double &value) const |
Get this value as string. | |
virtual bool | GetParsed (const QString &text, double &result) const |
Get value converted from string. | |
![]() | |
![]() |
Protected Types | |
enum | { PRECISION = 6 } |
Simple implementation of imath::IDoubleManip
interface for double values without rounding.
Definition at line 20 of file CDoubleManip.h.
|
protected |
Enumerator | |
---|---|
PRECISION |
Definition at line 49 of file CDoubleManip.h.
imath::CDoubleManip::CDoubleManip | ( | ) |
|
inlinevirtual |
Return smallest value bigger that specified one.
Implements imath::TIValueManip< double >.
Reimplemented in imath::CFixedPointManip.
Definition at line 104 of file CDoubleManip.h.
|
virtual |
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 60 of file CDoubleManip.h.
|
virtual |
Get number of digits after point.
Implements imath::IDoubleManip.
Reimplemented in imath::CFixedPointManip, and imeas::CNumericConstraintsComp.
|
inlinevirtual |
Get the nearest value rounded used this arithmetik.
Implements imath::TIValueManip< double >.
Reimplemented in imath::CFixedPointManip.
Definition at line 74 of file CDoubleManip.h.
|
inlinevirtual |
Return biggest value smaller that specified one.
Implements imath::TIValueManip< double >.
Reimplemented in imath::CFixedPointManip.
Definition at line 98 of file CDoubleManip.h.
|
virtual |
Get this value as string.
value | value will be converted. |
Implements imath::TIValueManip< double >.
Reimplemented in imath::CComplexDoubleManip, and imath::CFixedPointManip.
|
inlinevirtual |
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 80 of file CDoubleManip.h.
|
inlinevirtual |
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 86 of file CDoubleManip.h.
|
inlinevirtual |
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 92 of file CDoubleManip.h.
|
inline |
Set point character.
Definition at line 66 of file CDoubleManip.h.
© Witold Gantzke and Kirill Lepskiy