Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

template<class Type, class CoType>
void Impala::Util::SelectionSortCo ( Type *  data,
CoType *  coData,
int  left,
int  right 
)

Note:
right is inclusive

Definition at line 150 of file QuickSort.h.

References min.

Referenced by QuickSortCo().

00151 {
00152         for(int i=left ; i<right ; i++)
00153     {
00154                 int min = i;
00155                 for(int j=i+1 ; j<=right ; j++)
00156                         if(data[j] < data[min])
00157                 min = j;
00158                 Type temp = data[min];
00159                 data[min] = data[i];
00160                 data[i] = temp;
00161                 CoType coTemp = coData[min];
00162                 coData[min] = coData[i];
00163                 coData[i] = coTemp;
00164         }
00165 }


Generated on Thu Jan 13 09:24:06 2011 for ImpalaSrc by  doxygen 1.5.1