concordia-library/concordia/anubis_search_result.hpp
rjawor 4e02afc897 anubis search v1 - very slow for some patterns
Former-commit-id: ae327d7d24f4bc959d3749745a8c395093a17a50
2015-04-16 11:39:39 +02:00

38 lines
722 B
C++

#ifndef ANUBIS_SEARCH_RESULT_HDR
#define ANUBIS_SEARCH_RESULT_HDR
#include "concordia/common/config.hpp"
/*!
Class representing an example found by anubis search.
*/
class AnubisSearchResult {
public:
explicit AnubisSearchResult(const SUFFIX_MARKER_TYPE & exampleId,
const double score);
/*! Destructor.
*/
virtual ~AnubisSearchResult();
SUFFIX_MARKER_TYPE getExampleId() const {
return _exampleId;
}
double getScore() const {
return _score;
}
bool operator > (const AnubisSearchResult & other) const {
return (_score > other.getScore());
}
private:
SUFFIX_MARKER_TYPE _exampleId;
double _score;
};
#endif