Copyable worker token owning criteria, source pin and one bounded reservation. Cancellation never joins. Complete queues ownership; acceptance is not UI application. Retain and retry the same result after rejected publication. No UI references are retained.
More...
#include <model_query.hpp>
|
|
| QueryRequest ()=default |
| | Empty cancelled token.
|
| | QueryRequest (const QueryRequest &other)=default |
| | Retain the same work reservation and immutable owners.
|
| | QueryRequest (QueryRequest &&other) noexcept=default |
| | Transfer immutable owners and reservation.
|
|
| ~QueryRequest () |
| | Release criteria before the reservation; the final criteria deleter still sees reserved work.
|
| QueryRequest & | operator= (QueryRequest other) noexcept |
| | Commit all replacement fields before releasing old storage, which may reenter.
|
| std::shared_ptr< const Query< T, Q > > | query () const noexcept |
| | Access owning query data while retaining this token.
|
| QueryOptions | options () const noexcept |
| | Evaluation budgets captured when submitted.
|
| bool | stopRequested () const noexcept |
| | Check cancellation without touching UI.
|
|
void | cancel () const noexcept |
| | Cooperatively cancel this work; its reservation remains until the last owner dies.
|
| std::expected< PublishResult, SchedulerError > | complete (std::expected< QueryPage< T >, QueryError > result) const |
| | Validate and queue an owning result or typed failure from any worker thread.
|
|
|
template<class, class> |
| class | QueryController |
template<class T, class Q>
class portals::QueryRequest< T, Q >
Copyable worker token owning criteria, source pin and one bounded reservation. Cancellation never joins. Complete queues ownership; acceptance is not UI application. Retain and retry the same result after rejected publication. No UI references are retained.
- Template Parameters
-
| T | Immutable domain row satisfying the snapshot destruction contract on any releasing thread. |
| Q | Owning immutable criteria supporting destruction on any releasing thread. |
◆ QueryRequest() [1/2]
template<class T, class Q>
Retain the same work reservation and immutable owners.
- Parameters
-
| other | Token whose ownership is shared. |
◆ QueryRequest() [2/2]
template<class T, class Q>
Transfer immutable owners and reservation.
- Parameters
-
| other | Token emptied by the move. |
◆ complete()
template<class T, class Q>
Validate and queue an owning result or typed failure from any worker thread.
- Parameters
-
| result | Exact-source page, or domain evaluation failure; caller may retain and retry on rejection. |
- Returns
- Queue acceptance, CLOSED for stopped work, INVALID_ARGUMENT for shape/revision mismatch, WOULD_BLOCK for an already submitted token or queue capacity, or NO_MEMORY.
◆ operator=()
template<class T, class Q>
Commit all replacement fields before releasing old storage, which may reenter.
- Parameters
-
| other | Replacement token passed by value. |
- Returns
- This token after replacement; avoid using it if a deleter destroyed its owner.
◆ options()
template<class T, class Q>
Evaluation budgets captured when submitted.
- Returns
- Positive finite limits; defaults for an empty token.
◆ query()
template<class T, class Q>
Access owning query data while retaining this token.
- Returns
- Non-null shared immutable query, or null for an empty token.
◆ stopRequested()
template<class T, class Q>
Check cancellation without touching UI.
- Returns
- True for an empty token, superseded query, or closed controller.
The documentation for this class was generated from the following file: