#include <qsort.hh>
Collaboration diagram for oln::utils::internal::cmp_pt_value< I >:
Public Types | |
typedef oln::abstract::non_vectorial_image< I > | im_type |
Type of the image. | |
typedef mlc::exact< I >::ret::point_type | point_type |
Type of the considered points. | |
Public Member Functions | |
cmp_pt_value (const im_type &im) | |
Constructor. | |
bool | operator() (const point_type &i, const point_type &j) |
Main method. | |
Protected Attributes | |
const im_type & | im_ |
Image to use for comparison. |
I | Exact type of the image. |
Definition at line 48 of file qsort.hh.
oln::utils::internal::cmp_pt_value< I >::cmp_pt_value | ( | const im_type & | im | ) | [inline] |
bool oln::utils::internal::cmp_pt_value< I >::operator() | ( | const point_type & | i, | |
const point_type & | j | |||
) | [inline] |
Main method.
Definition at line 72 of file qsort.hh.
References oln::utils::internal::cmp_pt_value< I >::im_.
00073 { 00074 if (im_[i] == im_[j]) 00075 for (unsigned t(0); t < point_type::dim; ++t) 00076 if (i.nth(t) != j.nth(t)) 00077 return i.nth(t) < j.nth(t); 00078 return im_[j] > im_[i]; 00079 }