Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::WindowProvider< T > Class Template Referenceabstract

Worker provider; the source captures capabilities once and never calls load on UI. More...

#include <window_source.hpp>

Inheritance diagram for portals::WindowProvider< T >:
portals::WindowProvider< T >portals::WindowProvider< T > portals::FiniteWindowProvider< T >

Public Member Functions

virtual ~WindowProvider ()=default
 Safe final destruction on any releasing worker.
virtual SourceCapabilities capabilities () const noexcept=0
virtual std::expected< SourceReadReply< T >, SourceError > load (const SourceReadCommand &command, PageBuilder< T > &out, std::stop_token stop)=0

Detailed Description

template<class T>
class portals::WindowProvider< T >

Worker provider; the source captures capabilities once and never calls load on UI.

Template Parameters
TImmutable row value whose transitive dynamic page storage uses the builder resource.

Member Function Documentation

◆ capabilities()

template<class T>
virtual SourceCapabilities portals::WindowProvider< T >::capabilities ( ) const
pure virtualnoexcept
Returns
Immutable session capabilities; no allocation or I/O.

Implemented in portals::FileLogModel, and portals::FiniteWindowProvider< T >.

◆ load()

template<class T>
virtual std::expected< SourceReadReply< T >, SourceError > portals::WindowProvider< T >::load ( const SourceReadCommand & command,
PageBuilder< T > & out,
std::stop_token stop )
pure virtual
Parameters
commandImmutable bounded command borrowed for this invocation.
outReserved page and temporary resources; do not retain writable aliases.
stopCooperative cancellation; return promptly when the underlying operation permits.
Returns
Owning ready/pending/history reply or typed failure.

Implemented in portals::FileLogModel, and portals::FiniteWindowProvider< T >.


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