|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Compound condition: at least one of Conds... holds. Nests to any depth, and is usable directly as a top-level formRules entry, exactly like And. More...
#include <forms.hpp>
Public Member Functions | |
| constexpr bool | test (const A &action) const noexcept |
Evaluates the condition against action. | |
| glz::generic_u64 | emitNode () const |
| Emits this condition's x-rules JSON node. | |
Public Attributes | |
| std::tuple< Conds... > | conditions |
| The nested conditions, in declaration order. | |
Static Public Attributes | |
| static constexpr detail::RuleKind | kind = detail::RuleKind::Or |
| The wire "kind" this node emits: "or". | |
| static constexpr bool | isCondition = true |
| Usable as a nested condition: this node's test() is a function of the action, so composing it into an and/or/not tree changes what that tree evaluates to. | |
| static constexpr bool | isPresentation = false |
| Validation rule (not presentation): participates in the gate when used as a top-level formRules entry. | |
Compound condition: at least one of Conds... holds. Nests to any depth, and is usable directly as a top-level formRules entry, exactly like And.
| A | Action type every nested condition ranges over. |
| Conds | Nested condition node types, at least two. |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscard |
Emits this condition's x-rules JSON node.
| std::tuple<Conds...> morph::forms::Or< A, Conds >::conditions |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |