5#include <albert/export.h>
21 explicit RankItem(
const std::shared_ptr<Item> &item,
double score)
noexcept;
24 explicit RankItem(std::shared_ptr<Item> &&item,
double score)
noexcept;
33 std::shared_ptr<Item>
item;
An Item with a score.
Definition rankitem.h:18
bool operator>(const RankItem &other) const
The greater operator.
RankItem(const std::shared_ptr< Item > &item, double score) noexcept
Constructs a RankItem with the given item and score.
double score
The match score.
Definition rankitem.h:44
std::shared_ptr< Item > item
The matched item.
Definition rankitem.h:33
bool operator<(const RankItem &other) const
The less operator.
RankItem(std::shared_ptr< Item > &&item, double score) noexcept
Constructs a RankItem with the given item and score using move semantics.