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
SphinxResultDescSorter.cpp
Go to the documentation of this file.
1
#include "
SphinxResultDescSorter.hpp
"
2
3
namespace
HCE
4
{
5
namespace
sphinx
6
{
7
namespace
reduce_task
8
{
9
10
using namespace
std;
11
12
SphinxResultDescSorter::SphinxResultDescSorter
() {
13
}
14
15
SphinxResultDescSorter::~SphinxResultDescSorter
() {
16
}
17
18
bool
SphinxResultDescSorter::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
SphinxResultDescSorter::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
SphinxResultDescSorter.cpp
Generated on Mon Jan 13 2014 13:08:38 for HCE project C++ developers source code library by
1.8.1.2