23#define NODE_EDGES(X_RO, X_RW) X_RO(shamrock::solvergraph::IDataEdge<bool>, condition)
25namespace shamrock::solvergraph {
35 std::shared_ptr<INode> then_node;
36 std::shared_ptr<INode> else_node;
47 std::shared_ptr<INode> then_node = {},
48 std::shared_ptr<INode> else_node = {})
49 : then_node(std::move(then_node)), else_node(std::move(else_node)),
50 name(std::move(name)) {}
52 EXPAND_NODE_EDGES(NODE_EDGES)
61 return sham::format(
"n_{}",
get_uuid());
64 return sham::format(
"n_{}_end",
get_uuid());
u64 get_uuid() const
Get the UUID of the node.
std::string _impl_get_dot_graph_partial() const
get the dot graph of the node partial
std::string _impl_get_label() const
get the label of the node
void _impl_evaluate_internal()
evaluate the node
virtual std::string _impl_get_dot_graph_node_start() const
get the dot graph of the node start
virtual std::string _impl_get_dot_graph_node_end() const
get the dot graph of the node end
OperationIf(std::string name, std::shared_ptr< INode > then_node={}, std::shared_ptr< INode > else_node={})
std::string _impl_get_tex() const
get the tex of the node