Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::PositionResolver Class Referenceabstract

Bounded provider extension independent of views, schedulers, and total extent. Implementations must not perform I/O or unbounded scans on the UI thread. I/O resolvers run on the existing source worker path and honor cooperative cancellation. Return PENDING rather than block for absent data. No second task/runtime is created. More...

#include <model_position.hpp>

Inheritance diagram for portals::PositionResolver:
portals::PositionResolverportals::PositionResolver portals::FinitePositionResolver< T > portals::FiniteTextDocument portals::LogBookmarkProvider portals::FileLogModel

Public Member Functions

virtual ~PositionResolver ()=default
 Release only the resolver's own bounded metadata.
virtual std::expected< PositionReply, SourceError > resolve (const PositionRequest &request, std::stop_token stop={}) const =0

Detailed Description

Bounded provider extension independent of views, schedulers, and total extent. Implementations must not perform I/O or unbounded scans on the UI thread. I/O resolvers run on the existing source worker path and honor cooperative cancellation. Return PENDING rather than block for absent data. No second task/runtime is created.

Member Function Documentation

◆ resolve()

virtual std::expected< PositionReply, SourceError > portals::PositionResolver::resolve ( const PositionRequest & request,
std::stop_token stop = {} ) const
pure virtual
Parameters
requestOwning position and exact target qualification.
stopCooperative cancellation from the existing delivery scope.
Returns
Qualified outcome or typed failure; no view/model state is changed.

Implemented in portals::FileLogModel, portals::FinitePositionResolver< T >, and portals::FiniteTextDocument.


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