DBoW2::Result Class Reference
Single result of a query.
More...
#include <QueryResults.h>
List of all members.
Detailed Description
Single result of a query.
Constructor & Destructor Documentation
DBoW2::Result::Result |
( |
|
) |
[inline] |
DBoW2::Result::Result |
( |
EntryId |
_id, |
|
|
double |
_score | |
|
) |
| | [inline] |
Creates a result with the given data
- Parameters:
-
| _id | entry id |
| _score | score |
Member Function Documentation
static bool DBoW2::Result::ge |
( |
const Result & |
a, |
|
|
const Result & |
b | |
|
) |
| | [inline, static] |
Compares the scores of two results
- Returns:
- true iff a.Score > b.Score
static bool DBoW2::Result::geq |
( |
const Result & |
a, |
|
|
const Result & |
b | |
|
) |
| | [inline, static] |
Returns true iff a.Score >= b.Score
- Parameters:
-
- Returns:
- true iff a.Score >= b.Score
static bool DBoW2::Result::geqv |
( |
const Result & |
a, |
|
|
double |
s | |
|
) |
| | [inline, static] |
Returns true iff a.Score >= s
- Parameters:
-
- Returns:
- true iff a.Score >= s
static bool DBoW2::Result::gt |
( |
const Result & |
a, |
|
|
const Result & |
b | |
|
) |
| | [inline, static] |
Compares the score of two results
- Parameters:
-
- Returns:
- true iff a.Score > b.Score
static bool DBoW2::Result::ltId |
( |
const Result & |
a, |
|
|
const Result & |
b | |
|
) |
| | [inline, static] |
Returns true iff a.Id < b.Id
- Parameters:
-
- Returns:
- true iff a.Id < b.Id
bool DBoW2::Result::operator< |
( |
double |
s |
) |
const [inline] |
Compares the score of this entry with a given one
- Parameters:
-
- Returns:
- true iff this score < s
bool DBoW2::Result::operator< |
( |
const Result & |
r |
) |
const [inline] |
Compares the scores of two results
- Returns:
- true iff this.score < r.score
bool DBoW2::Result::operator== |
( |
EntryId |
id |
) |
const [inline] |
Compares the entry id of the result
- Returns:
- true iff this.id == id
bool DBoW2::Result::operator> |
( |
double |
s |
) |
const [inline] |
Compares the score of this entry with a given one
- Parameters:
-
- Returns:
- true iff this score > s
bool DBoW2::Result::operator> |
( |
const Result & |
r |
) |
const [inline] |
Compares the scores of two results
- Returns:
- true iff this.score > r.score
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Result & |
ret | |
|
) |
| | [friend] |
Prints a string version of the result
- Parameters:
-
| os | ostream |
| ret | Result to print |
The documentation for this class was generated from the following file: