Concordia
AnubisSearchResult Class Reference

#include <anubis_search_result.hpp>

Public Member Functions

 AnubisSearchResult (const SUFFIX_MARKER_TYPE &exampleId, const double score)
 
virtual ~AnubisSearchResult ()
 
SUFFIX_MARKER_TYPE getExampleId () const
 
double getScore () const
 
bool operator> (const AnubisSearchResult &other) const
 

Detailed Description

Class representing an example found by anubis search. Contains the id of the example and anubis score of the search.

Constructor & Destructor Documentation

AnubisSearchResult::AnubisSearchResult ( const SUFFIX_MARKER_TYPE &  exampleId,
const double  score 
)
explicit

Constructor.

Parameters
exampleIdthe id of found example
scorescore of this example
AnubisSearchResult::~AnubisSearchResult ( )
virtual

Destructor.

Member Function Documentation

SUFFIX_MARKER_TYPE AnubisSearchResult::getExampleId ( ) const
inline

Getter for example id.

Returns
example id
double AnubisSearchResult::getScore ( ) const
inline

Getter for anubis score.

Returns
anubis score of the example

Here is the caller graph for this function:

bool AnubisSearchResult::operator> ( const AnubisSearchResult other) const
inline

Operator "greater than", used to sort objects of this class.

Returns
true if the score of the current result is larger than the score of another result

Here is the call graph for this function:


The documentation for this class was generated from the following files: