morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
change_types.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <glaze/glaze.hpp>
#include <optional>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  morph::effects::RecordChange
 A change to the rows of one record type. More...
struct  morph::effects::InstanceChange
 A change to the state of one model instance. More...
struct  morph::effects::Changes
 What one successful execute changed. More...

Variables

constexpr std::size_t morph::effects::kMaxChangeKeys = 4096
 The most keys one RecordChange carries.

Detailed Description

The plain data a derived change is made of. This header includes nothing of the registry or the forms layer, so the wire types can use it.

Definition in file change_types.hpp.

Variable Documentation

◆ kMaxChangeKeys

std::size_t morph::effects::kMaxChangeKeys = 4096
inlineconstexpr

The most keys one RecordChange carries.

The wire readers refuse a record entry with more keys, so a producer never emits one: a change that would name more rows is reported as a whole-type change (keys absent), which over-notifies but never misses. The bound keeps one peer-supplied list from forcing an unbounded allocation.

Definition at line 22 of file change_types.hpp.