|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Owning field descriptor over one scalar root; snapshots never retain a borrowed member reference. More...
#include <ui_value_model.hpp>
Public Types | |
| using | Value = std::remove_cv_t<Member> |
| Owning projected value, without the member's const qualification. | |
Public Member Functions | |
| ModelField (const ModelField &other)=default | |
| std::expected< std::shared_ptr< const PropertyChange< Value > >, ManagedError > | snapshot () const |
| std::expected< PropertyUpdate< T >, ManagedError > | set (const Value &value) const |
| ModelField | operator= (const Value &value) |
| ModelField | operator= (const ModelField &source) |
| template<class Delta> requires (!std::is_const_v<Member>) && std::assignable_from<Member &, const Value &> && requires(const Value &value, const Delta &delta) { Value(value + delta); } | |
| ModelField | operator+= (const Delta &delta) |
| std::expected< PropertyUpdate< T >, ManagedError > | result () const |
Friends | |
| class | Model< T > |
| struct | detail::ValueModelAccess |
Owning field descriptor over one scalar root; snapshots never retain a borrowed member reference.
| T | Copyable equality-comparable owning record, under Property's non-reentry contract. |
| Member | Owning data-member type; const members do not offer set or assignment. Reads copy the selected field and retain the root revision. Writes copy the current root, replace this field and use its existing transaction; they are UI-affine, not external conditional writes. Receipts are the exact root PropertyUpdate<T>, including postcommit notification rejection. |
|
default |
| other | Descriptor copied without reading or publishing values. |
|
inline |
| Delta | Value accepted by the member type's addition operator. |
| delta | Added to the latest accepted field, using the ordinary C++ arithmetic/type semantics. |
|
inline |
| source | Field read once and copied as a value; no lasting binding is established. |
|
inline |
| value | Replacement for this field; collected failures use the root model.value operation. |
|
inline |
|
inline |
| value | Field candidate copied into the latest accepted root; other fields are preserved. |
|
inline |