Concordia
anubis_search_result.hpp
1 #ifndef ANUBIS_SEARCH_RESULT_HDR
2 #define ANUBIS_SEARCH_RESULT_HDR
3 
4 #include "concordia/common/config.hpp"
5 
13 public:
18  explicit AnubisSearchResult(const SUFFIX_MARKER_TYPE & exampleId,
19  const double score);
20 
23  virtual ~AnubisSearchResult();
24 
28  SUFFIX_MARKER_TYPE getExampleId() const {
29  return _exampleId;
30  }
31 
35  double getScore() const {
36  return _score;
37  }
38 
43  bool operator > (const AnubisSearchResult & other) const {
44  return (_score > other.getScore());
45  }
46 
47 private:
48  SUFFIX_MARKER_TYPE _exampleId;
49 
50  double _score;
51 };
52 
53 #endif
SUFFIX_MARKER_TYPE getExampleId() const
Definition: anubis_search_result.hpp:28
double getScore() const
Definition: anubis_search_result.hpp:35
bool operator>(const AnubisSearchResult &other) const
Definition: anubis_search_result.hpp:43
Definition: anubis_search_result.hpp:12
virtual ~AnubisSearchResult()
Definition: anubis_search_result.cpp:10
AnubisSearchResult(const SUFFIX_MARKER_TYPE &exampleId, const double score)
Definition: anubis_search_result.cpp:4