00001 #ifndef __J2K__DOUBLE_COMPARE3_HH__
00002 #define __J2K__DOUBLE_COMPARE3_HH__
00003
00004
00005 inline friend bool operator==( const Double& l, const double d ) {
00006 return (l.value == d);
00007 }
00008
00009 inline friend bool operator!=( const Double& l, const double d ) {
00010 return (l.value != d);
00011 }
00012
00013 inline friend bool operator<( const Double& l, const double d ) {
00014 return (l.value < d);
00015 }
00016
00017 inline friend bool operator<=( const Double& l, const double d ) {
00018 return (l.value <= d);
00019 }
00020
00021 inline friend bool operator>( const Double& l, const double d ) {
00022 return (l.value > d);
00023 }
00024
00025 inline friend bool operator>=( const Double& l, const double d ) {
00026 return (l.value >= d);
00027 }
00028
00029 #endif