vt::Match Struct Reference

Struct representing a single database match. More...

#include <database.h>

List of all members.

Public Member Functions

 Match (DocId _id, float _score)
 Match ()
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 15 of file database.h.


Constructor & Destructor Documentation

vt::Match::Match (  )  [inline]

Definition at line 20 of file database.h.

vt::Match::Match ( DocId  _id,
float  _score 
) [inline]

Definition at line 21 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 24 of file database.h.


Member Data Documentation

Definition at line 17 of file database.h.

Definition at line 18 of file database.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs


vocabulary_tree
Author(s): Patrick Mihelich
autogenerated on Fri Jan 11 09:14:12 2013