hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxResultAscSorter.cpp
Go to the documentation of this file.
2 
3 namespace HCE
4 {
5 namespace sphinx
6 {
7 namespace reduce_task
8 {
9 
10 using namespace std;
11 
13 }
14 
16 }
17 
18 bool SphinxResultAscSorter::operator ()(pair<string, unsigned long long> first,
19  pair<string, unsigned long long> second) const
20 {
21  return first.first < second.first;
22 }
23 
25  (vector<pair<string, unsigned long long> > &allWeightDocIds)
26 {
27  std::sort(allWeightDocIds.begin(), allWeightDocIds.end(), *this);
28 }
29 
30 }
31 }
32 }