|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Rule/condition: *lhs > *rhs when both operands are engaged; vacuously satisfied when either is unengaged (a form still being filled in must not fail this comparison prematurely — see forms.md). Compares the operands' engaged values (operator*()) directly — e.g. the underlying math::Rational for Quantity, or DateTime for Timestamp — never the field type's own (possibly throwing, for Quantity) operator<=>. More...
#include <forms.hpp>
Public Member Functions | |
| constexpr bool | test (const A &action) const noexcept |
Evaluates the comparison against action. | |
| glz::generic_u64 | emitNode () const |
| Emits this rule's x-rules JSON node. | |
Public Attributes | |
| V A::* | lhs |
| Pointer to the left-hand member. | |
| V A::* | rhs |
| Pointer to the right-hand member. | |
Static Public Attributes | |
| static constexpr detail::RuleKind | kind = detail::RuleKind::Greater |
| The wire "kind" this node emits: "greater". | |
| 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. | |
Rule/condition: *lhs > *rhs when both operands are engaged; vacuously satisfied when either is unengaged (a form still being filled in must not fail this comparison prematurely — see forms.md). Compares the operands' engaged values (operator*()) directly — e.g. the underlying math::Rational for Quantity, or DateTime for Timestamp — never the field type's own (possibly throwing, for Quantity) operator<=>.
| V | Field member type shared by both operands (must satisfy detail::ComparableField). |
| A | Action type both fields belong to. |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscard |
| V A::* morph::forms::Greater< V, A >::lhs |
| V A::* morph::forms::Greater< V, A >::rhs |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |