helpers.cc

Go to the documentation of this file.
00001 #include <lestes/backend_v2/workers/helpers.hh>
00002 #include <lestes/backend_v2/workers/alloc_int_finder.g.hh>
00003 
00004 package(lestes);
00005 package(backend_v2);
00006 package(workers);
00007 
00008 /*!
00009         \brief Compares two intervals.
00010         
00011         \param a An interval.
00012         \param b An interval.
00013         \return If start of the first interval is less than start of the second interval, it returns true. False otherwise.
00014 */
00015 bool alloc_int_cmp1(srp<alloc_interval> a, srp<alloc_interval> b) {
00016         return a->start_get() < b->start_get();
00017 }
00018 
00019 
00020 /*!
00021         \brief Compares two intervals.
00022         
00023         \param a An interval.
00024         \param b An interval.
00025         \return If end of the first interval is greater than end of the second interval, it returns true. False otherwise.
00026 */
00027 bool alloc_int_cmp2(srp<alloc_interval> a, srp<alloc_interval> b) {
00028         return a->end_get() > b->end_get();
00029 }
00030 
00031 
00032 end_package(workers);
00033 end_package(backend_v2);
00034 end_package(lestes);
00035 

Generated on Mon Feb 12 18:22:35 2007 for lestes by doxygen 1.5.1-20070107