|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Explicit in-memory provider using the bounded local transform, with rejection recovery. Evaluates synchronously on UI. Use a delayed provider for work that must leave UI. Callback captures must own immutable storage; callbacks cannot retain borrowed arguments. More...
#include <model_query.hpp>
Public Member Functions | |
| MemoryQueryProvider (Filter filter, Compare compare) | |
| Own domain callbacks. | |
| void | start (QueryRequest< T, Q > request) override |
| Evaluate and queue the exact query; retain a rejected notification for retry. | |
| std::expected< void, SchedulerError > | retry () override |
| Retry the same result after queue rejection; closed/cancelled retained work is discarded. | |
| Public Member Functions inherited from portals::QueryProvider< T, Q > | |
| virtual | ~QueryProvider ()=default |
| Reclaim provider resources on UI; outstanding worker tokens remain independently owned. | |
Explicit in-memory provider using the bounded local transform, with rejection recovery. Evaluates synchronously on UI. Use a delayed provider for work that must leave UI. Callback captures must own immutable storage; callbacks cannot retain borrowed arguments.
| T | Copy-constructible immutable domain row satisfying snapshot ownership. |
| Q | Owning immutable domain criteria. |
| Filter | Callable bool(const T&, const Q&) selecting rows. |
| Compare | Strict weak ordering callable bool(const T&, const T&, const Q&). |
|
inline |
Own domain callbacks.
| filter | Bounded row predicate, invoked by the local transform. |
| compare | Bounded strict weak ordering, invoked by the local transform. |
|
inlineoverridevirtual |
Retry the same result after queue rejection; closed/cancelled retained work is discarded.
Reimplemented from portals::QueryProvider< T, Q >.
|
inlineoverridevirtual |
Evaluate and queue the exact query; retain a rejected notification for retry.
| request | Owning query token; a superseded retained notification is discarded. |
Implements portals::QueryProvider< T, Q >.