Weak UI handle to a model owned by one ManagedScene. Handles may be copied and destroyed on any thread. Operations require the creating UI thread. Closing the scene closes its model endpoints; handles do not extend ownership.
More...
#include <managed_model.hpp>
|
|
class | ManagedScene |
|
struct | ui::detail::Access |
|
struct | ui::detail::RowAccess |
|
struct | detail::ManagedModelAccess |
template<class T>
class portals::ManagedModel< T >
Weak UI handle to a model owned by one ManagedScene. Handles may be copied and destroyed on any thread. Operations require the creating UI thread. Closing the scene closes its model endpoints; handles do not extend ownership.
- Template Parameters
-
| T | Immutable domain row satisfying Model<T>'s snapshot and destruction contract. |
◆ publisher()
Copy the existing worker-safe publication endpoint on UI.
- Returns
- Publisher for newer snapshots, WRONG_THREAD, or CLOSED after scene cleanup. Collection-bound sink-only models return WOULD_BLOCK instead of exposing a writable endpoint. A rejected publication remains the provider's responsibility; retain and retry its value.
◆ setChangeMap()
- Parameters
-
| changes | Complete bounded ordering proof for a published destination revision. |
- Returns
- UI-affine admission, or checked access failure; this does not publish model data. Remembered positions use this proof only when its endpoint matches the current snapshot.
The documentation for this class was generated from the following file: