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

Opt-in finite Model adapter without changing exact-count Model semantics. Keeps the existing immutable domain snapshot externally owned; copies only inline values into charged pages. This read-only delivery adapter does not forward model editing, query, search, or extent APIs; retain the original model binding for those operations. Dynamic values need an explicit storage codec and are deliberately not accepted. The snapshot must satisfy ModelSnapshot's worker-safe read/destruction contract. Create the WindowSource with initialRevision equal to snapshot->revision(). More...

#include <window_source_model.hpp>

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

Public Member Functions

 FiniteWindowProvider (std::shared_ptr< const ModelSnapshot< T > > snapshot, bool seekRow=false)
SourceCapabilities capabilities () const noexcept override
std::expected< SourceReadReply< T >, SourceError > load (const SourceReadCommand &command, PageBuilder< T > &out, std::stop_token stop) override
Public Member Functions inherited from portals::WindowProvider< T >
virtual ~WindowProvider ()=default
 Safe final destruction on any releasing worker.

Detailed Description

template<class T>
requires std::is_trivially_copyable_v<T>
class portals::FiniteWindowProvider< T >

Opt-in finite Model adapter without changing exact-count Model semantics. Keeps the existing immutable domain snapshot externally owned; copies only inline values into charged pages. This read-only delivery adapter does not forward model editing, query, search, or extent APIs; retain the original model binding for those operations. Dynamic values need an explicit storage codec and are deliberately not accepted. The snapshot must satisfy ModelSnapshot's worker-safe read/destruction contract. Create the WindowSource with initialRevision equal to snapshot->revision().

Template Parameters
TTrivially copyable immutable inline domain value.

Constructor & Destructor Documentation

◆ FiniteWindowProvider()

template<class T>
portals::FiniteWindowProvider< T >::FiniteWindowProvider ( std::shared_ptr< const ModelSnapshot< T > > snapshot,
bool seekRow = false )
inlineexplicit
Parameters
snapshotNon-null immutable finite data; external domain storage is not a page cache.
seekRowEnable only when locateRow is a bounded worker-safe index.

Member Function Documentation

◆ capabilities()

template<class T>
SourceCapabilities portals::FiniteWindowProvider< T >::capabilities ( ) const
inlineoverridevirtualnoexcept
Returns
Finite backward/tail capability and the explicitly enabled identity index.

Implements portals::WindowProvider< T >.

◆ load()

template<class T>
std::expected< SourceReadReply< T >, SourceError > portals::FiniteWindowProvider< T >::load ( const SourceReadCommand & command,
PageBuilder< T > & out,
std::stop_token stop )
inlineoverridevirtual
Parameters
commandBounded cursor/entry/tail/identity request.
outReserved page builder.
stopCooperative cancellation.
Returns
Up to maxRows; finite boundaries use FINAL_END, never a guessed count.

Implements portals::WindowProvider< T >.


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