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

Cheap owning page; copying never copies T or allocates. More...

#include <window_source.hpp>

Public Member Functions

 WindowPage ()=default
 Empty owning page.
std::span< const WindowRow< T > > rows () const noexcept
SourceCursor before () const noexcept
SourceCursor after () const noexcept
std::uint64_t dataRevision () const noexcept

Friends

class PageBuilder< T >

Detailed Description

template<class T>
class portals::WindowPage< T >

Cheap owning page; copying never copies T or allocates.

Template Parameters
TImmutable worker-destructible row value.

Member Function Documentation

◆ after()

template<class T>
SourceCursor portals::WindowPage< T >::after ( ) const
inlinenoexcept
Returns
Gap following this page, or an invalid cursor when empty.

◆ before()

template<class T>
SourceCursor portals::WindowPage< T >::before ( ) const
inlinenoexcept
Returns
Gap preceding this page, or an invalid cursor when empty.

◆ dataRevision()

template<class T>
std::uint64_t portals::WindowPage< T >::dataRevision ( ) const
inlinenoexcept
Returns
Immutable page revision, or zero for an empty handle.

◆ rows()

template<class T>
std::span< const WindowRow< T > > portals::WindowPage< T >::rows ( ) const
inlinenoexcept
Returns
Rows borrowed for this handle's lifetime.

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