HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
hikogui
formula
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
9
namespace
hi::inline
v1
{
10
11
struct
formula_unary_operator_node
:
formula_node
{
12
std::unique_ptr<formula_node>
rhs;
13
14
formula_unary_operator_node
(
parse_location
location,
std::unique_ptr<formula_node>
rhs) :
15
formula_node
(
std::move
(location)), rhs(
std::move
(rhs))
16
{
17
}
18
19
void
post_process
(
formula_post_process_context
&context)
override
20
{
21
rhs->post_process(context);
22
}
23
24
std::string
string() const noexcept
override
25
{
26
return
std::format(
"<unary_operator {}>"
, *rhs);
27
}
28
};
29
30
}
// namespace hi::inline v1
v1
DOXYGEN BUG.
Definition
algorithm.hpp:15
v1::formula_node
Definition
formula_node.hpp:29
v1::formula_post_process_context
Definition
formula_post_process_context.hpp:19
v1::formula_unary_operator_node
Definition
formula_unary_operator_node.hpp:11
v1::formula_unary_operator_node::post_process
void post_process(formula_post_process_context &context) override
Resolve function and method pointers.
Definition
formula_unary_operator_node.hpp:19
v1::parse_location
Definition
parse_location.hpp:18
std::string
std::move
T move(T... args)
std::unique_ptr
Generated on Mon Apr 22 2024 12:52:34 for HikoGUI by
1.10.0