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

template<class C1, class C2>
void Impala::Core::Column::SortDescending ( C1 *  first,
C2 *  second,
int  nrElem 
) [inline]

Sort columns first and second in descending order based on the values in the second column.

Definition at line 103 of file Sort.h.

References ILOG_ERROR, ILOG_VAR, and Impala::Util::QuickSortDescCo().

Referenced by Impala::Core::Table::SimilarityTableSet::ComputeRank(), and Impala::Core::Table::SimilarityTableSet::ComputeRanks().

00104 {
00105     ILOG_VAR(Impala.Core.Column.SortDescending);
00106     if ((nrElem > first->Capacity()) || (nrElem > second->Capacity()))
00107     {
00108         ILOG_ERROR("Incompatible sizes");
00109         return;
00110     }
00111 
00112     // for some reason Dennis and Michiel chose different calling order for
00113     // the sorted and unsorted parameter
00114     Util::QuickSortDescCo(second->GetData(), first->GetData(), 0, nrElem - 1);
00115 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:18:51 2011 for ImpalaSrc by  doxygen 1.5.1