#include <albert/matcher.h>
Augmented match score.
Some nifty features:
- The bool type conversion evaluates to isMatch()
- The Score/double type conversion seamlessly uses the score()
- See also
- Matcher
|
| | Match () |
| | Constructs an invalid match.
|
| |
| | Match (const Score score) |
| | Constructs a match with the given score.
|
| |
| | Match (const Match &o)=default |
| | Constructs a Match with the score of other.
|
| |
| Match & | operator= (const Match &o)=default |
| | Replaces the score with that of other.
|
| |
| bool | isMatch () const |
| | Returns true if this is a match, otherwise returns false.
|
| |
| bool | isEmptyMatch () const |
| | Returns true if this is a zero score match, otherwise returns false.
|
| |
| bool | isExactMatch () const |
| | Returns true if this is a perfect match, otherwise returns false.
|
| |
| Score | score () const |
| | Returns the score.
|
| |
| | operator bool () const |
| | Returns true if this is a match, otherwise returns false.
|
| |
| | operator Score () const |
| | Returns the score.
|
| |
◆ Score
◆ Match() [1/3]
| albert::util::Match::Match |
( |
| ) |
|
|
inline |
Constructs an invalid match.
◆ Match() [2/3]
| albert::util::Match::Match |
( |
const Score |
score | ) |
|
|
inline |
Constructs a match with the given score.
◆ Match() [3/3]
| albert::util::Match::Match |
( |
const Match & |
o | ) |
|
|
default |
Constructs a Match with the score of other.
◆ isEmptyMatch()
| bool albert::util::Match::isEmptyMatch |
( |
| ) |
const |
|
inline |
Returns true if this is a zero score match, otherwise returns false.
◆ isExactMatch()
| bool albert::util::Match::isExactMatch |
( |
| ) |
const |
|
inline |
Returns true if this is a perfect match, otherwise returns false.
◆ isMatch()
| bool albert::util::Match::isMatch |
( |
| ) |
const |
|
inline |
Returns true if this is a match, otherwise returns false.
◆ operator bool()
| albert::util::Match::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Returns true if this is a match, otherwise returns false.
◆ operator Score()
| albert::util::Match::operator Score |
( |
| ) |
const |
|
inline |
◆ operator=()
| Match & albert::util::Match::operator= |
( |
const Match & |
o | ) |
|
|
default |
Replaces the score with that of other.
◆ score()
| Score albert::util::Match::score |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: