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

Read-only weak scene-owned derived value; no writable alias or subscription escapes. More...

#include <managed.hpp>

Public Member Functions

 ManagedSource ()=default
 Construct an empty source whose operations return CLOSED.
std::expected< std::shared_ptr< const PropertyChange< T > >, TreeError > snapshot () const

Friends

class ManagedScene
class ManagedNavigation
struct ui::detail::Access

Detailed Description

template<std::equality_comparable T>
class portals::ManagedSource< T >

Read-only weak scene-owned derived value; no writable alias or subscription escapes.

Template Parameters
TEquality-comparable, transitively owning immutable Property value. Ordinary derived snapshots remain readable after close until scene destruction, matching ManagedState. liveText sources additionally validate their original UI identity: removal is STALE_NODE and close is CLOSED.

Member Function Documentation

◆ snapshot()

template<std::equality_comparable T>
std::expected< std::shared_ptr< const PropertyChange< T > >, TreeError > portals::ManagedSource< T >::snapshot ( ) const
inline
Returns
Independent immutable value/revision owner, WRONG_THREAD, or CLOSED after owner destruction. A liveText source also returns STALE_NODE after origin removal and CLOSED after scene close.

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