|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
An environment that holds its values: for tests, and for evaluating outside a mounted screen. More...
#include <expression.hpp>
Public Member Functions | |
| Value | ref (std::string_view head, std::span< std::string const > path) const override |
| Reads a name and walks its path. | |
| Value | row (std::span< std::string const > path) const override |
| Walks the row. | |
| Value | control (ExprKind form, std::string_view name) const override |
| Reads a control form from the maps. | |
| Value | pref (std::string_view point, std::span< std::string const > path) const override |
| Reads a customization choice. | |
| Value | client (ExprKind form, std::string_view name) const override |
| Reads env, session or host. | |
| FormatContext const & | formatting () const override |
| The formatting facts. | |
| void | report (std::string_view path, std::string_view reason) const override |
| Records a runtime error, once per path. | |
| Public Member Functions inherited from morph::ui::Environment | |
| Environment (Environment const &)=delete | |
| Environment & | operator= (Environment const &)=delete |
| Environment (Environment &&)=delete | |
| Environment & | operator= (Environment &&)=delete |
Public Attributes | |
| ValueRecord | names |
| The values ref reads, by head name. | |
| Value | rowValue |
| The innermost row. | |
| ValueRecord | queries |
| Query values, by name. | |
| ValueRecord | results |
| Mutation results, by name. | |
| ValueRecord | errors |
| Error texts, by query or mutation name. | |
| ValueRecord | errorKinds |
| Error kinds, by query or mutation name. | |
| std::set< std::string, std::less<> > | pendingNames |
| The queries and mutations in flight. | |
| std::set< std::string, std::less<> > | permitted |
| What the principal may run. | |
| ValueRecord | prefs |
| Customization choices, by point. | |
| ValueRecord | environment |
| env values. | |
| ValueRecord | session |
| session values. | |
| ValueRecord | host |
| host values. | |
| FormatContext | format |
| The formatting facts. | |
| std::vector< Refusal > | diagnostics |
| The runtime errors reported, each path once. | |
An environment that holds its values: for tests, and for evaluating outside a mounted screen.
Each runtime error is recorded once per expression path in diagnostics.
Definition at line 2058 of file expression.hpp.
|
inlinenodiscardoverridevirtual |
Reads a name and walks its path.
| head | The name. |
| path | The path. |
Implements morph::ui::Environment.
Definition at line 2093 of file expression.hpp.
|
inlinenodiscardoverridevirtual |
Walks the row.
| path | The path. |
Implements morph::ui::Environment.
Definition at line 2100 of file expression.hpp.
|
inlinenodiscardoverridevirtual |
Reads a control form from the maps.
| form | The form. |
| name | The query or mutation. |
Implements morph::ui::Environment.
Definition at line 2106 of file expression.hpp.
|
inlinenodiscardoverridevirtual |
Reads a customization choice.
| point | The point. |
| path | The path. |
Implements morph::ui::Environment.
Definition at line 2126 of file expression.hpp.
|
inlinenodiscardoverridevirtual |
| form | The form. |
| name | The name. |
Implements morph::ui::Environment.
Definition at line 2134 of file expression.hpp.
|
inlinenodiscardoverridevirtual |
The formatting facts.
Implements morph::ui::Environment.
Definition at line 2143 of file expression.hpp.
|
inlineoverridevirtual |
Records a runtime error, once per path.
| path | The expression node's path. |
| reason | What went wrong. |
Implements morph::ui::Environment.
Definition at line 2148 of file expression.hpp.
| ValueRecord morph::ui::StaticEnvironment::names |
The values ref reads, by head name.
Definition at line 2061 of file expression.hpp.
| Value morph::ui::StaticEnvironment::rowValue |
The innermost row.
Definition at line 2063 of file expression.hpp.
| ValueRecord morph::ui::StaticEnvironment::queries |
Query values, by name.
Definition at line 2065 of file expression.hpp.
| ValueRecord morph::ui::StaticEnvironment::results |
Mutation results, by name.
Definition at line 2067 of file expression.hpp.
| ValueRecord morph::ui::StaticEnvironment::errors |
Error texts, by query or mutation name.
Definition at line 2069 of file expression.hpp.
| ValueRecord morph::ui::StaticEnvironment::errorKinds |
Error kinds, by query or mutation name.
Definition at line 2071 of file expression.hpp.
| std::set<std::string, std::less<> > morph::ui::StaticEnvironment::pendingNames |
The queries and mutations in flight.
Definition at line 2073 of file expression.hpp.
| std::set<std::string, std::less<> > morph::ui::StaticEnvironment::permitted |
What the principal may run.
Definition at line 2075 of file expression.hpp.
| ValueRecord morph::ui::StaticEnvironment::prefs |
Customization choices, by point.
Definition at line 2077 of file expression.hpp.
| ValueRecord morph::ui::StaticEnvironment::environment |
env values.
Definition at line 2079 of file expression.hpp.
| ValueRecord morph::ui::StaticEnvironment::session |
session values.
Definition at line 2081 of file expression.hpp.
| ValueRecord morph::ui::StaticEnvironment::host |
host values.
Definition at line 2083 of file expression.hpp.
| FormatContext morph::ui::StaticEnvironment::format |
The formatting facts.
Definition at line 2085 of file expression.hpp.
|
mutable |
The runtime errors reported, each path once.
Definition at line 2087 of file expression.hpp.