HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
formula_unary_operator_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 "formula_node.hpp"
8#include "../macros.hpp"
9
10hi_export_module(hikogui.formula.formula_unary_operator_node);
11
12namespace hi { inline namespace v1 {
13
16
17 formula_unary_operator_node(size_t line_nr, size_t column_nr, std::unique_ptr<formula_node> rhs) :
18 formula_node(line_nr, column_nr), rhs(std::move(rhs))
19 {
20 }
21
23 {
24 rhs->post_process(context);
25 }
26
27 std::string string() const noexcept override
28 {
29 return std::format("<unary_operator {}>", *rhs);
30 }
31};
32
33}} // namespace hi::inline v1
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
Definition formula_node.hpp:21
Definition formula_post_process_context.hpp:237
Definition formula_unary_operator_node.hpp:14
void post_process(formula_post_process_context &context) override
Resolve function and method pointers.
Definition formula_unary_operator_node.hpp:22
T move(T... args)