ICF 3.0.5.47
Technical documentation of ICF Libraries
imath::TIValueManip< ValueType > Class Template Referenceabstract

Interface for all classes providing simply arithmetic functions on predefined data type. More...

#include <TIValueManip.h>

Inherits istd::IPolymorphic.

Collaboration diagram for imath::TIValueManip< ValueType >:

Public Member Functions

virtual ValueType GetRounded (const ValueType &value) const =0
 Get the nearest value rounded used this arithmetik.
 
virtual bool IsEqual (const ValueType &value1, const ValueType &value2) const =0
 Compare two values and check, if there are equal.
 
virtual bool IsSmaller (const ValueType &value1, const ValueType &value2) const =0
 Compare two values and check, if first one is smaller as the second.
 
virtual bool IsSmallerEqual (const ValueType &value1, const ValueType &value2) const =0
 Compare two values and check, if first one is smaller or equal as the second.
 
virtual QString GetString (const ValueType &value) const =0
 Get this value as string.
 
virtual bool GetParsed (const QString &text, ValueType &result) const =0
 Get value converted from string.
 
virtual ValueType GetSmallerValue (const ValueType &value) const =0
 Return biggest value smaller that specified one.
 
virtual ValueType GetBiggerValue (const ValueType &value) const =0
 Return smallest value bigger that specified one.
 

Detailed Description

template<class ValueType>
class imath::TIValueManip< ValueType >

Interface for all classes providing simply arithmetic functions on predefined data type.

Definition at line 27 of file TIValueManip.h.

Member Function Documentation

◆ GetBiggerValue()

template<class ValueType >
virtual ValueType imath::TIValueManip< ValueType >::GetBiggerValue ( const ValueType & value) const
pure virtual

Return smallest value bigger that specified one.

Implemented in imath::CDoubleManip, and imath::CFixedPointManip.

◆ GetParsed()

template<class ValueType >
virtual bool imath::TIValueManip< ValueType >::GetParsed ( const QString & text,
ValueType & result ) const
pure virtual

Get value converted from string.

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

Implemented in imath::CComplexDoubleManip, imath::CDoubleManip, and imath::CFixedPointManip.

◆ GetRounded()

template<class ValueType >
virtual ValueType imath::TIValueManip< ValueType >::GetRounded ( const ValueType & value) const
pure virtual

Get the nearest value rounded used this arithmetik.

Implemented in imath::CDoubleManip, and imath::CFixedPointManip.

Referenced by icmm::TComposedColor< Size >::GetRounded().

◆ GetSmallerValue()

template<class ValueType >
virtual ValueType imath::TIValueManip< ValueType >::GetSmallerValue ( const ValueType & value) const
pure virtual

Return biggest value smaller that specified one.

Implemented in imath::CDoubleManip, and imath::CFixedPointManip.

◆ GetString()

template<class ValueType >
virtual QString imath::TIValueManip< ValueType >::GetString ( const ValueType & value) const
pure virtual

Get this value as string.

Parameters
valuevalue will be converted.

Implemented in imath::CComplexDoubleManip, imath::CDoubleManip, and imath::CFixedPointManip.

◆ IsEqual()

template<class ValueType >
virtual bool imath::TIValueManip< ValueType >::IsEqual ( const ValueType & value1,
const ValueType & value2 ) const
pure virtual

Compare two values and check, if there are equal.

Parameters
value1first value.
value2second value.

Implemented in imath::CDoubleManip, and imath::CFixedPointManip.

Referenced by icmm::TComposedColor< Size >::IsRoundedEqual().

◆ IsSmaller()

template<class ValueType >
virtual bool imath::TIValueManip< ValueType >::IsSmaller ( const ValueType & value1,
const ValueType & value2 ) const
pure virtual

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

Parameters
value1first value.
value2second value.

Implemented in imath::CDoubleManip, and imath::CFixedPointManip.

◆ IsSmallerEqual()

template<class ValueType >
virtual bool imath::TIValueManip< ValueType >::IsSmallerEqual ( const ValueType & value1,
const ValueType & value2 ) const
pure virtual

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

Parameters
value1first value.
value2second value.

Implemented in imath::CDoubleManip, and imath::CFixedPointManip.


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

© Witold Gantzke and Kirill Lepskiy