Public Member Functions | Protected Types | List of all members
imath::CDoubleManip Class Reference

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

#include <CDoubleManip.h>

Inheritance diagram for imath::CDoubleManip:
imath::IDoubleManip imath::TIValueManip< double > istd::IPolymorphic imath::CFixedPointManip imath::CComplexDoubleManip

Public Member Functions

 CDoubleManip ()
 
char GetPointChar () const
 Get point character. More...
 
void SetPointChar (char pointChar)
 Set point character. More...
 
virtual int GetPrecision () const
 Get number of digits after point. More...
 
virtual double GetRounded (const double &value) const
 Get the nearest value rounded used this arithmetik. More...
 
virtual bool IsEqual (const double &value1, const double &value2) const
 Compare two values and check, if there are equal. More...
 
virtual bool IsSmaller (const double &value1, const double &value2) const
 Compare two values and check, if first one is smaller as the second. More...
 
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. More...
 
virtual double GetSmallerValue (const double &value) const
 Return biggest value smaller that specified one. More...
 
virtual double GetBiggerValue (const double &value) const
 Return smallest value bigger that specified one. More...
 
virtual QString GetString (const double &value) const
 Get this value as string. More...
 
virtual bool GetParsed (const QString &text, double &result) const
 Get value converted from string. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Types

enum  { PRECISION = 6 }
 

Detailed Description

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

Definition at line 15 of file CDoubleManip.h.

Member Enumeration Documentation

anonymous enum
protected
Enumerator
PRECISION 

Definition at line 44 of file CDoubleManip.h.

Constructor & Destructor Documentation

imath::CDoubleManip::CDoubleManip ( )

Member Function Documentation

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 99 of file CDoubleManip.h.

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::CFixedPointManip, and imath::CComplexDoubleManip.

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

Get point character.

Definition at line 55 of file CDoubleManip.h.

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

Get number of digits after point.

Implements imath::IDoubleManip.

Reimplemented in imath::CFixedPointManip.

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 69 of file CDoubleManip.h.

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 93 of file CDoubleManip.h.

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::CFixedPointManip, and imath::CComplexDoubleManip.

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 75 of file CDoubleManip.h.

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 81 of file CDoubleManip.h.

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 87 of file CDoubleManip.h.

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

Set point character.

Definition at line 61 of file CDoubleManip.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy