|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A query's registration with the mutations that invalidate it. More...
#include <control.hpp>
Public Member Functions | |
| InvalidationLink (Refetchable &target) noexcept | |
| void | refetch () const |
| Refetches the query, or does nothing once it is gone. | |
| void | clear () noexcept |
| Unregisters the query; called by its destructor. | |
| bool | live () const noexcept |
| Whether the query is still registered. | |
A query's registration with the mutations that invalidate it.
The query owns the link and clears it when it is destroyed; a mutation holds it shared (MutationOptions::invalidates). So a mutation never refetches a query that is gone, and the two may be destroyed in either order.
Definition at line 71 of file control.hpp.
|
inlineexplicitnoexcept |
| target | The query to refetch. Borrowed until clear(). |
Definition at line 74 of file control.hpp.
|
inline |
Refetches the query, or does nothing once it is gone.
Definition at line 77 of file control.hpp.
|
inlinenoexcept |
Unregisters the query; called by its destructor.
Definition at line 84 of file control.hpp.
|
inlinenodiscardnoexcept |
Whether the query is still registered.
Definition at line 88 of file control.hpp.