|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
The app document mounted as the root scope every screen of the session shares (spec 6 §5). More...
#include <interpreter.hpp>
Public Member Functions | |
| AppRoot (AppRoot const &)=delete | |
| AppRoot & | operator= (AppRoot const &)=delete |
| AppRoot (AppRoot &&)=delete | |
| AppRoot & | operator= (AppRoot &&)=delete |
| ~AppRoot () | |
| Runs onUnmount, takes the scope off the session, and releases everything. | |
| Value | read (Json const &expression) const |
| Evaluates an expression in the app document's scope. | |
| std::vector< Refusal > const & | diagnostics () const noexcept |
| The diagnostics reported so far. | |
The app document mounted as the root scope every screen of the session shares (spec 6 §5).
Its state, lets, queries and mutations live once for the session. A screen reads them as {"ref": "app.name"}, a binding on one updates, and {"set": "app.name", …} writes the app document's state. A query of the app document runs once however many screens read it. Destroying the root runs its onUnmount, takes its scope off the session and releases its model instances; a host does that before it clears the session on sign-out.
Definition at line 2952 of file interpreter.hpp.
|
inline |
Runs onUnmount, takes the scope off the session, and releases everything.
Definition at line 2960 of file interpreter.hpp.
Evaluates an expression in the app document's scope.
| expression | The expression's JSON. |
Definition at line 2974 of file interpreter.hpp.
|
inlinenodiscardnoexcept |