morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::model::ActionLogPolicy< Action > Struct Template Reference

Per-action policy deciding how repeated executions are checkpointed into a durable action log. More...

#include <registry.hpp>

Static Public Attributes

static constexpr bool coalesce = false
 If true, a checkpoint keeps only the most recent entry per (modelType, entityKey, actionType). If false (default), every entry survives.

Detailed Description

template<typename Action>
struct morph::model::ActionLogPolicy< Action >

Per-action policy deciding how repeated executions are checkpointed into a durable action log.

Deliberately minimal for now — only coalesce exists, and it has no registration macro yet. Specialise directly for the rare action where only the latest occurrence should survive a checkpoint (e.g. a form-field edit fired repeatedly via morph::flows::FlowSession::set<>); every other action defaults to false, meaning every execution is treated as a distinct, permanent fact (the right default for anything resembling a business event).

Template Parameters
ActionConcrete action type.

Definition at line 428 of file registry.hpp.

Member Data Documentation

◆ coalesce

template<typename Action>
bool morph::model::ActionLogPolicy< Action >::coalesce = false
staticconstexpr

If true, a checkpoint keeps only the most recent entry per (modelType, entityKey, actionType). If false (default), every entry survives.

Definition at line 432 of file registry.hpp.


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