Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Beta/Math/Double/DComp2.hh

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

Generated on Sun Oct 14 18:46:12 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001