Scopira 20080306

scopira::basekit::vecindex_sortable< DATAT, REFT > Class Template Reference

#include <vectormath.h>

List of all members.

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)

Detailed Description

template<class DATAT, class REFT>
class scopira::basekit::vecindex_sortable< DATAT, REFT >

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.

Author:
Aleksander Demko

The documentation for this class was generated from the following file: