Public Member Functions | Public Attributes
vt::Match Struct Reference

Struct representing a single database match. More...

#include <database.h>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

Definition at line 19 of file database.h.

Definition at line 20 of file database.h.


The documentation for this struct was generated from the following file:


vocabulary_tree
Author(s): Patrick Mihelich
autogenerated on Thu Jan 2 2014 12:12:26