Immutable copied top-K item. It never owns the source corpus or worker index.
More...
#include <search.hpp>
|
|
| SearchItem ()=default |
| | Construct an empty item inside a checked allocation boundary.
|
|
| SearchItem (const SearchItem &)=default |
| | Copy only bounded presentation and highlight data.
|
| SearchItem & | operator= (const SearchItem &)=default |
| | SearchItem (SearchItem &&other) |
| | Transfer output through a potentially throwing empty-container construction. MSVC checked iterators allocate a proxy even when moving an empty vector.
|
| SearchItem & | operator= (SearchItem &&other) noexcept |
| | Transfer bounded output without allocating another container proxy.
|
| const GraphemeText & | text () const noexcept |
|
|
std::shared_ptr< const detail::PreparedListText > | presentation |
| | Bounded prevalidated worker display.
|
|
std::vector< SearchHighlight > | highlights = std::vector<SearchHighlight>(0) |
| | Whole original grapheme ranges.
|
|
SearchRank | rank |
| | Exact deterministic provider rank.
|
Immutable copied top-K item. It never owns the source corpus or worker index.
◆ SearchItem()
| portals::SearchItem::SearchItem |
( |
SearchItem && | other | ) |
|
|
inline |
Transfer output through a potentially throwing empty-container construction. MSVC checked iterators allocate a proxy even when moving an empty vector.
- Parameters
-
| other | Bounded item whose presentation and highlights are transferred. |
◆ operator=() [1/2]
- Returns
- Reference to this item after copying bounded output.
◆ operator=() [2/2]
Transfer bounded output without allocating another container proxy.
- Parameters
-
| other | Bounded item whose presentation and highlights are transferred. |
- Returns
- Reference to this item after the transfer.
◆ text()
- Returns
- Original owning label text; borrow remains valid while this item's presentation lives.
The documentation for this struct was generated from the following file: