Albert
Loading...
Searching...
No Matches
albert::RankItem Class Reference

#include <rankitem.h>

Detailed Description

Scored item Used to rank item results of mutliple handlers.

Public Member Functions

 RankItem (std::shared_ptr< Item > item, float score)
 

Public Attributes

std::shared_ptr< Itemitem
 The matched item. More...
 
float score
 The match score. Must be in the range (0,1]. Not checked for performance. More...
 

Constructor & Destructor Documentation

◆ RankItem()

albert::RankItem::RankItem ( std::shared_ptr< Item item,
float  score 
)
explicit
Parameters
itemThe matched item.
scoreThe match score. Must be in the range (0,1]. Not checked for performance.

Member Data Documentation

◆ item

std::shared_ptr<Item> albert::RankItem::item

The matched item.

◆ score

float albert::RankItem::score

The match score. Must be in the range (0,1]. Not checked for performance.


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