Public Member Functions | List of all members
imath::TIValueManip< ValueType > Class Template Referenceabstract

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

#include <TIValueManip.h>

Inheritance diagram for imath::TIValueManip< ValueType >:
istd::IPolymorphic

Public Member Functions

virtual ValueType GetRounded (const ValueType &value) const =0
 Get the nearest value rounded used this arithmetik. More...
 
virtual bool IsEqual (const ValueType &value1, const ValueType &value2) const =0
 Compare two values and check, if there are equal. More...
 
virtual bool IsSmaller (const ValueType &value1, const ValueType &value2) const =0
 Compare two values and check, if first one is smaller as the second. More...
 
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. More...
 
virtual QString GetString (const ValueType &value) const =0
 Get this value as string. More...
 
virtual bool GetParsed (const QString &text, ValueType &result) const =0
 Get value converted from string. More...
 
virtual ValueType GetSmallerValue (const ValueType &value) const =0
 Return biggest value smaller that specified one. More...
 
virtual ValueType GetBiggerValue (const ValueType &value) const =0
 Return smallest value bigger that specified one. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

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

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

Definition at line 22 of file TIValueManip.h.

Member Function Documentation

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

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

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

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

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

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

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

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

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

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


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy