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

Copyable immutable ready values for one physically visible table interval. More...

#include <visible_model.hpp>

Classes

class  Iterator
 Standard forward iterator projecting each immutable row to its domain value. More...

Public Member Functions

 VisibleModelSnapshot ()=default
 Successful empty value with no provider storage.
 VisibleModelSnapshot (const VisibleModelSnapshot &)=default
 Share immutable storage without copying values.
 VisibleModelSnapshot (VisibleModelSnapshot &&other) noexcept
VisibleModelSnapshot & operator= (VisibleModelSnapshot other) noexcept
Iterator begin () const noexcept
Iterator end () const noexcept
std::size_t size () const noexcept
bool empty () const noexcept
std::span< const ModelRow< T > > rows () const noexcept
RowRange range () const noexcept
std::uint64_t dataRevision () const noexcept

Friends

class VirtualTable< T >

Detailed Description

template<class T>
class portals::VisibleModelSnapshot< T >

Copyable immutable ready values for one physically visible table interval.

Template Parameters
TImmutable domain value; values are retained through the existing ModelRange pin, never copied. Const iteration and copies of distinct handles may run on any thread after synchronized transfer. Borrowed values/iterators require a retained snapshot owner. Final release follows ModelSnapshot's payload destruction contract. Scrolling, publication, table removal and scene destruction do not change it.

Constructor & Destructor Documentation

◆ VisibleModelSnapshot()

template<class T>
portals::VisibleModelSnapshot< T >::VisibleModelSnapshot ( VisibleModelSnapshot< T > && other)
inlinenoexcept
Parameters
otherOwner transferred in constant time; the source becomes an empty range.

Member Function Documentation

◆ begin()

template<class T>
Iterator portals::VisibleModelSnapshot< T >::begin ( ) const
inlinenoexcept
Returns
First immutable domain value; retain this snapshot while using iterators.

◆ dataRevision()

template<class T>
std::uint64_t portals::VisibleModelSnapshot< T >::dataRevision ( ) const
inlinenoexcept
Returns
Provider revision of the prepared pin; zero for an unowned hidden interval.

◆ empty()

template<class T>
bool portals::VisibleModelSnapshot< T >::empty ( ) const
inlinenoexcept
Returns
Whether no body row intersects the final clip.

◆ end()

template<class T>
Iterator portals::VisibleModelSnapshot< T >::end ( ) const
inlinenoexcept
Returns
Sentinel past the last domain value.

◆ operator=()

template<class T>
VisibleModelSnapshot & portals::VisibleModelSnapshot< T >::operator= ( VisibleModelSnapshot< T > other)
inlinenoexcept
Parameters
otherReplacement value sharing or transferring immutable ownership.
Returns
This snapshot after all metadata is replaced, before old storage is released.

◆ range()

template<class T>
RowRange portals::VisibleModelSnapshot< T >::range ( ) const
inlinenoexcept
Returns
Logical interval represented by rows(), independent of overscan.

◆ rows()

template<class T>
std::span< const ModelRow< T > > portals::VisibleModelSnapshot< T >::rows ( ) const
inlinenoexcept
Returns
Borrowed immutable values with their stable RowIds; retain this snapshot.

◆ size()

template<class T>
std::size_t portals::VisibleModelSnapshot< T >::size ( ) const
inlinenoexcept
Returns
Number of physically visible ready rows, excluding header and overscan.

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