Struct representing a single database match. More...
#include <database.h>
| Public Member Functions | |
| Match () | |
| Match (DocId _id, float _score) | |
| bool | operator< (const Match &other) const | 
| Allows sorting Matches in best-to-worst order with std::sort. | |
| Public Attributes | |
| DocId | id | 
| float | score | 
Struct representing a single database match.
score is in the range [0,2], where 0 is best and 2 is worst. 
Definition at line 17 of file database.h.
| vt::Match::Match | ( | ) |  [inline] | 
Definition at line 22 of file database.h.
| vt::Match::Match | ( | DocId | _id, | 
| float | _score | ||
| ) |  [inline] | 
Definition at line 23 of file database.h.
| bool vt::Match::operator< | ( | const Match & | other | ) | const  [inline] | 
Allows sorting Matches in best-to-worst order with std::sort.
Definition at line 26 of file database.h.
Definition at line 19 of file database.h.
| float vt::Match::score | 
Definition at line 20 of file database.h.