5#include <albert/export.h>
26 explicit RankItem(
const std::shared_ptr<Item> &item,
double score)
noexcept;
31 explicit RankItem(std::shared_ptr<Item> &&item,
double score)
noexcept;
46 std::shared_ptr<Item>
item;
An Item with a score.
Definition rankitem.h:20
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:57
std::shared_ptr< Item > item
The matched item.
Definition rankitem.h:46
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.