|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
An owning event in a sequential list edit stream. More...
#include <list_change.hpp>
Public Types | |
| using | Snapshot = std::vector<std::shared_ptr<T>> |
Static Public Member Functions | |
| static ListChange | reset (Snapshot items) |
| static ListChange | cleared () |
Public Attributes | |
| ListChangeKind | kind |
| std::size_t | index = 0 |
| std::shared_ptr< T > | item |
| std::size_t | from_index = 0 |
| std::shared_ptr< const Snapshot > | snapshot = nullptr |
An owning event in a sequential list edit stream.
Indices refer to the receiver's replayed mirror; the producer may already hold the batch's final state. Consumers use item/snapshot, never at(index), to read event payloads.
| using aria::ListChange< T >::Snapshot = std::vector<std::shared_ptr<T>> |
|
inlinestatic |
|
inlinestatic |
| ListChangeKind aria::ListChange< T >::kind |
| std::size_t aria::ListChange< T >::index = 0 |
| std::shared_ptr<T> aria::ListChange< T >::item |
| std::size_t aria::ListChange< T >::from_index = 0 |
| std::shared_ptr<const Snapshot> aria::ListChange< T >::snapshot = nullptr |