|
Albert
|
#include <albert/matcher.h>
Augmented match score.
Some nifty features:
Public Member Functions | |
| 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. | |