proj home

Files   Classes   Functions   Hierarchy  

unitdouble.h

Go to the documentation of this file.
00001 #ifndef UNITDOUBLE_H
00002 #define UNITDOUBLE_H
00003 
00004 #include <typedefs.h>
00005 
00012 class unitdouble
00013 { 
00014 public:
00015 
00017   uintc bucketsize;
00019   uintc index(doublec & x) const 
00020     { return (uint)((x*bucketsize)) % bucketsize; }
00022   boolc operator() 
00023   (
00024     doublec & a,
00025     doublec & b
00026   ) const 
00027     { return a < b; }
00028 
00030   unitdouble(uintc bucketsize_)
00031     : bucketsize(bucketsize_) {}
00032    
00033 };
00034 
00035 #endif
00036 
00037 

Generated on Fri Mar 4 00:49:26 2011 for Chelton Evans Source by  doxygen 1.5.8