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