Albert
Loading...
Searching...
No Matches
rankitem.h
Go to the documentation of this file.
1// Copyright (c) 2023 Manuel Schneider
2
3#pragma once
5#include <memory>
6
7namespace albert
8{
9
12class ALBERT_EXPORT RankItem
13{
14public:
17 explicit RankItem(std::shared_ptr<Item> item, float score);
18
20 std::shared_ptr<Item> item;
21
23 float score;
24};
25
26}
Scored item Used to rank item results of mutliple handlers.
Definition: rankitem.h:13
RankItem(std::shared_ptr< Item > item, float score)
std::shared_ptr< Item > item
The matched item.
Definition: rankitem.h:20
float score
The match score. Must be in the range (0,1]. Not checked for performance.
Definition: rankitem.h:23
Definition: albert.h:12