morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::detail::Evaluator Class Reference

Evaluates expressions against an environment, with the comprehension variables in scope. More...

#include <expression.hpp>

Public Member Functions

 Evaluator (Environment const &env)
 Evaluates against env.
Value eval (Expr const &expr)
 Evaluates one node.

Detailed Description

Evaluates expressions against an environment, with the comprehension variables in scope.

Definition at line 1262 of file expression.hpp.

Constructor & Destructor Documentation

◆ Evaluator()

morph::ui::detail::Evaluator::Evaluator ( Environment const & env)
inlineexplicit

Evaluates against env.

Parameters
envWhat the expression reads.

Definition at line 1266 of file expression.hpp.

Member Function Documentation

◆ eval()

Value morph::ui::detail::Evaluator::eval ( Expr const & expr)
inlinenodiscard

Evaluates one node.

Parameters
exprThe node.
Returns
Its value; null on a runtime error, which is reported.

Definition at line 1271 of file expression.hpp.


The documentation for this class was generated from the following file: