HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
skeleton_return_node.hpp
1// Copyright Take Vos 2020-2021.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "skeleton_node.hpp"
8
9namespace hi::inline v1 {
10
13
15 skeleton_node(std::move(location)), expression(std::move(expression))
16 {
17 }
18
19 void post_process(formula_post_process_context &context) override
20 {
21 post_process_expression(context, *expression, location);
22 }
23
25 {
26 return evaluate_formula_without_output(context, *expression, location);
27 }
28
29 std::string string() const noexcept override
30 {
31 return std::format("<return {}>", *expression);
32 }
33};
34
35} // namespace hi::inline v1
DOXYGEN BUG.
Definition algorithm.hpp:13
A dynamic data type.
Definition datum.hpp:219
Definition formula_evaluation_context.hpp:15
Definition formula_post_process_context.hpp:19
Definition parse_location.hpp:18
Definition skeleton_node.hpp:16
Definition skeleton_return_node.hpp:11
datum evaluate(formula_evaluation_context &context) override
Evaluate the template.
Definition skeleton_return_node.hpp:24
T move(T... args)