24 #include <antares/expressions/nodes/Leaf.h>
26 namespace Antares::Expressions::Nodes
40 explicit PortFieldSumNode(
const std::string& port_name,
const std::string& field_name);
58 std::string name()
const override
60 return "PortFieldSumNode";
64 std::string port_name_;
65 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:32
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:36
const std::string & getPortName() const
Retrieves the port name.
Definition: PortFieldSumNode.cpp:31