![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
#include <CComplexDoubleManip.h>
Public Types | |
typedef CFixedPointManip | BaseClass |
![]() | |
enum | RoundingType { RT_NORMAL , RT_FLOOR , RT_CEIL , RT_LAST = RT_CEIL + 1 } |
typedef CDoubleManip | BaseClass |
Public Member Functions | |
CComplexDoubleManip (int precision=1, RoundingType roundingType=RT_NORMAL, double scaleFactor=1.0, double offset=0.0, const istd::CRange &range=istd::CRange(-std::numeric_limits< double >::max(), std::numeric_limits< double >::max())) | |
const istd::CRange & | GetRange () const |
void | SetRange (const istd::CRange &range) |
double | GetScaleFactor () const |
void | SetScaleFactor (double value) |
double | GetOffset () const |
void | SetOffset (double value) |
void | SetPrecision (int precision) |
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. | |
![]() | |
CFixedPointManip (int precision=1, RoundingType roundingType=RT_NORMAL) | |
void | SetPrecision (int precision) |
Set fixed point precision. | |
RoundingType | GetRoundingType () const |
Get type of rounding. | |
void | SetRoundingType (RoundingType roundingType) |
Set type of rounding. | |
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. | |
![]() | |
CDoubleManip () | |
char | GetPointChar () const |
Get point character. | |
void | SetPointChar (char pointChar) |
Set point character. | |
![]() | |
![]() |
Protected Member Functions | |
virtual qint32 | GetInternalValue (double value) const |
![]() | |
virtual double | GetNormalValue (qint32 intValue) const |
QString | GetString (const double &value, int precision) const |
Additional Inherited Members | |
![]() | |
typedef int(*) | RoundingFuntionPtr(qreal value) |
![]() | |
enum | { PRECISION = 6 } |
Definition at line 23 of file CComplexDoubleManip.h.
Definition at line 26 of file CComplexDoubleManip.h.
imath::CComplexDoubleManip::CComplexDoubleManip | ( | int | precision = 1, |
RoundingType | roundingType = RT_NORMAL, | ||
double | scaleFactor = 1.0, | ||
double | offset = 0.0, | ||
const istd::CRange & | range = istd::CRange(-std::numeric_limits< double >::max(), std::numeric_limits< double >::max()) ) |
|
protectedvirtual |
Reimplemented from imath::CFixedPointManip.
|
inline |
Definition at line 92 of file CComplexDoubleManip.h.
|
virtual |
Get value converted from string.
text | input string. |
result | result value. |
Reimplemented from imath::CFixedPointManip.
|
inline |
Definition at line 66 of file CComplexDoubleManip.h.
|
inline |
Definition at line 78 of file CComplexDoubleManip.h.
|
virtual |
Get this value as string.
value | value will be converted. |
Reimplemented from imath::CFixedPointManip.
|
inline |
Definition at line 98 of file CComplexDoubleManip.h.
|
inline |
Definition at line 106 of file CComplexDoubleManip.h.
References imath::CFixedPointManip::GetPrecision(), and imath::CFixedPointManip::SetPrecision().
|
inline |
Definition at line 72 of file CComplexDoubleManip.h.
|
inline |
Definition at line 84 of file CComplexDoubleManip.h.
References imath::CFixedPointManip::GetPrecision().
© Witold Gantzke and Kirill Lepskiy