HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
formula
formula_binary_operator_node.hpp
1
// Copyright Take Vos 2020.
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
tt {
10
11
struct
formula_binary_operator_node
:
formula_node
{
12
std::unique_ptr<formula_node>
lhs;
13
std::unique_ptr<formula_node>
rhs;
14
15
formula_binary_operator_node
(
parse_location
location,
std::unique_ptr<formula_node>
lhs,
std::unique_ptr<formula_node>
rhs) :
16
formula_node
(
std::move
(location)), lhs(
std::move
(lhs)), rhs(
std::move
(rhs)) {}
17
18
void
post_process
(
formula_post_process_context
& context)
override
{
19
lhs->post_process(context);
20
rhs->post_process(context);
21
}
22
23
std::string
string() const noexcept
override
{
24
return
std::format(
"<binary_operator {}, {}>"
, *lhs, *rhs);
25
}
26
};
27
28
}
tt::formula_binary_operator_node
Definition
formula_binary_operator_node.hpp:11
tt::formula_binary_operator_node::post_process
void post_process(formula_post_process_context &context) override
Resolve function and method pointers.
Definition
formula_binary_operator_node.hpp:18
tt::formula_node
Definition
formula_node.hpp:19
tt::formula_post_process_context
Definition
formula_post_process_context.hpp:19
tt::parse_location
Definition
parse_location.hpp:17
std::string
std::move
T move(T... args)
std::unique_ptr
Generated on Mon Apr 22 2024 12:53:30 for HikoGUI by
1.10.0