Albert
Loading...
Searching...
No Matches
albert::Match Class Referencefinal

#include <albert/matcher.h>

Description

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

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.
 
Matchoperator= (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.
 

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