ULIS  dev4.0.7
Utility Library for Imaging Systems
Classes | Public Member Functions | List of all members
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > Class Template Reference

The TBinaryInformationUnit class allows the use of binary memory units using any metric system standard defined in eMetricSystemStandard.

Classes

class  TMetricSystemStandardSpecs
 The TMetricSystemStandardSpecs class allows to specialize and differentiate constant multiplier for various metrics systems standards as defined in eMetricSystemStandard. More...
 
struct  TMetricSystemStandardSpecs< eMetricSystemStandard::kIEC >
 
struct  TMetricSystemStandardSpecs< eMetricSystemStandard::kSI >
 
class  TUnitConversionFactor
 The TUnitConversionFactor class allows to get the conversion factor beetween any two binary information units. More...
 

Public Member Functions

template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
 TBinaryInformationUnit (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
 TBinaryInformationUnit (const TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > &iOther)
 
template<typename T >
 TBinaryInformationUnit (T iValue)
 C-Tors. More...
 
 operator double () const
 
 operator uint32 () const
 
 operator uint64 () const
 
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool operator!= (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > & operator*= (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > & operator*= (double iValue)
 
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > & operator+= (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > & operator+= (double iValue)
 
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > operator- () const
 
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > & operator-= (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > & operator-= (double iValue)
 
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > & operator/= (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > & operator/= (double iValue)
 
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool operator< (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool operator<= (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool operator== (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool operator> (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool operator>= (const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &iOther)
 
double Value () const
 

Constructor & Destructor Documentation

◆ TBinaryInformationUnit() [1/3]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<typename T >
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::TBinaryInformationUnit ( iValue)
inline

◆ TBinaryInformationUnit() [2/3]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::TBinaryInformationUnit ( const TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > &  iOther)
inline

◆ TBinaryInformationUnit() [3/3]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::TBinaryInformationUnit ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

Member Function Documentation

◆ operator double()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator double ( ) const
inline

◆ operator uint32()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator uint32 ( ) const
inline

◆ operator uint64()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator uint64 ( ) const
inline

◆ operator!=()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator!= ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

◆ operator*=() [1/2]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >& TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator*= ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

◆ operator*=() [2/2]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >& TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator*= ( double  iValue)
inline

◆ operator+=() [1/2]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >& TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator+= ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

◆ operator+=() [2/2]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >& TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator+= ( double  iValue)
inline

◆ operator-()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ > TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator- ( ) const
inline

◆ operator-=() [1/2]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >& TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator-= ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

◆ operator-=() [2/2]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >& TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator-= ( double  iValue)
inline

◆ operator/=() [1/2]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >& TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator/= ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

◆ operator/=() [2/2]

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >& TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator/= ( double  iValue)
inline

◆ operator<()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator< ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

◆ operator<=()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator<= ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

◆ operator==()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator== ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

◆ operator>()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator> ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

◆ operator>=()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
template<eMetricSystemStandard OTHER_STD, uint8 OTHER_POW, uint8 OTHER_SEQ>
bool TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::operator>= ( const TBinaryInformationUnit< OTHER_STD, OTHER_POW, OTHER_SEQ > &  iOther)
inline

◆ Value()

template<eMetricSystemStandard SELF_STD, uint8 SELF_POW, uint8 SELF_SEQ>
double TBinaryInformationUnit< SELF_STD, SELF_POW, SELF_SEQ >::Value ( ) const
inline