24#include <antares/expressions/hashable.h>
25#include <antares/expressions/nodes/Leaf.h>
27namespace Antares::Expressions::Nodes
41 explicit PortFieldSumNode(
const std::string& port_name,
const std::string& field_name);
59 std::string name()
const override
61 return "PortFieldSumNode";
65 std::string port_name_;
66 std::string field_name_;
Base class for nodes in a syntax tree.
Definition Node.h:30
Represents a port field node where the expression is a sum.
Definition PortFieldSumNode.h:33
PortFieldSumNode(const std::string &port_name, const std::string &field_name)
Constructs a port field sum node with the specified port and field names.
Definition PortFieldSumNode.cpp:25
const std::string & getFieldName() const
Retrieves the field name.
Definition PortFieldSumNode.cpp:37
const std::string & getPortName() const
Retrieves the port name.
Definition PortFieldSumNode.cpp:32