Scopira
20080306
|
#include <vectormath.h>
Public Types | |
typedef DATAT | data_type |
typedef REFT | ref_type |
Public Member Functions | |
vecindex_sortable (DATAT &data, REFT &ref) | |
int | compare_element (int lidx, int ridx) const |
void | swap_element (int lidx, int ridx) |
This template class is a "sortable" object (passable to tool::qsort, in tool/sort_imp.h)
data (of type DATAT) is a vector of INDECIES into ref (of type REFT). This will sort data (the indicies) based on their refered to values in ref. ref will not be modified.