HCE project C++ developers source code library
1.1.1
HCE project developer library
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
SphinxResultAscSorter.cpp
Go to the documentation of this file.
1
#include "
SphinxResultAscSorter.hpp
"
2
3
namespace
HCE
4
{
5
namespace
sphinx
6
{
7
namespace
reduce_task
8
{
9
10
using namespace
std;
11
12
SphinxResultAscSorter::SphinxResultAscSorter
() {
13
}
14
15
SphinxResultAscSorter::~SphinxResultAscSorter
() {
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
24
void
SphinxResultAscSorter::sort
25
(vector<pair<string, unsigned long long> > &allWeightDocIds)
26
{
27
std::sort(allWeightDocIds.begin(), allWeightDocIds.end(), *
this
);
28
}
29
30
}
31
}
32
}
sources
reduceSphinx
src
SphinxResultAscSorter.cpp
Generated on Mon Jan 13 2014 13:08:38 for HCE project C++ developers source code library by
1.8.1.2