ICF 3.0.5.47
Technical documentation of ICF Libraries
imath::CDoubleManip Class Reference

Simple implementation of imath::IDoubleManip interface for double values without rounding. More...

#include <CDoubleManip.h>

Inheritance diagram for imath::CDoubleManip:
Collaboration diagram for imath::CDoubleManip:

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.
 
- Public Member Functions inherited from imath::IDoubleManip
- Public Member Functions inherited from imath::TIValueManip< double >

Protected Types

enum  { PRECISION = 6 }
 

Detailed Description

Simple implementation of imath::IDoubleManip interface for double values without rounding.

Definition at line 20 of file CDoubleManip.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
PRECISION 

Definition at line 49 of file CDoubleManip.h.

Constructor & Destructor Documentation

◆ CDoubleManip()

imath::CDoubleManip::CDoubleManip ( )

Member Function Documentation

◆ GetBiggerValue()

double imath::CDoubleManip::GetBiggerValue ( const double & value) const
inlinevirtual

Return smallest value bigger that specified one.

Implements imath::TIValueManip< double >.

Reimplemented in imath::CFixedPointManip.

Definition at line 104 of file CDoubleManip.h.

◆ GetParsed()

virtual bool imath::CDoubleManip::GetParsed ( const QString & text,
double & result ) const
virtual

Get value converted from string.

Parameters
textinput string.
resultresult value.
Returns
true if success.

Implements imath::TIValueManip< double >.

Reimplemented in imath::CComplexDoubleManip, and imath::CFixedPointManip.

◆ GetPointChar()

char imath::CDoubleManip::GetPointChar ( ) const
inline

Get point character.

Definition at line 60 of file CDoubleManip.h.

◆ GetPrecision()

virtual int imath::CDoubleManip::GetPrecision ( ) const
virtual

Get number of digits after point.

Implements imath::IDoubleManip.

Reimplemented in imath::CFixedPointManip, and imeas::CNumericConstraintsComp.

◆ GetRounded()

double imath::CDoubleManip::GetRounded ( const double & value) const
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.

◆ GetSmallerValue()

double imath::CDoubleManip::GetSmallerValue ( const double & value) const
inlinevirtual

Return biggest value smaller that specified one.

Implements imath::TIValueManip< double >.

Reimplemented in imath::CFixedPointManip.

Definition at line 98 of file CDoubleManip.h.

◆ GetString()

virtual QString imath::CDoubleManip::GetString ( const double & value) const
virtual

Get this value as string.

Parameters
valuevalue will be converted.

Implements imath::TIValueManip< double >.

Reimplemented in imath::CComplexDoubleManip, and imath::CFixedPointManip.

◆ IsEqual()

bool imath::CDoubleManip::IsEqual ( const double & value1,
const double & value2 ) const
inlinevirtual

Compare two values and check, if there are equal.

Parameters
value1first value.
value2second value.

Implements imath::TIValueManip< double >.

Reimplemented in imath::CFixedPointManip.

Definition at line 80 of file CDoubleManip.h.

◆ IsSmaller()

bool imath::CDoubleManip::IsSmaller ( const double & value1,
const double & value2 ) const
inlinevirtual

Compare two values and check, if first one is smaller as the second.

Parameters
value1first value.
value2second value.

Implements imath::TIValueManip< double >.

Reimplemented in imath::CFixedPointManip.

Definition at line 86 of file CDoubleManip.h.

◆ IsSmallerEqual()

bool imath::CDoubleManip::IsSmallerEqual ( const double & value1,
const double & value2 ) const
inlinevirtual

Compare two values and check, if first one is smaller or equal as the second.

Parameters
value1first value.
value2second value.

Implements imath::TIValueManip< double >.

Reimplemented in imath::CFixedPointManip.

Definition at line 92 of file CDoubleManip.h.

◆ SetPointChar()

void imath::CDoubleManip::SetPointChar ( char pointChar)
inline

Set point character.

Definition at line 66 of file CDoubleManip.h.


The documentation for this class was generated from the following file:

© Witold Gantzke and Kirill Lepskiy