Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Expressions::Nodes::PortFieldNode Class Reference

Represents a port field node in a syntax tree. More...

#include <PortFieldNode.h>

Inheritance diagram for Antares::Expressions::Nodes::PortFieldNode:
Antares::Expressions::Nodes::Node Antares::Expressions::Hashable Antares::Expressions::IName

Public Member Functions

 PortFieldNode (const std::string &port_name, const std::string &field_name)
 Constructs a port field node with the specified port and field names.
 
const std::string & getPortName () const
 Retrieves the port name.
 
const std::string & getFieldName () const
 Retrieves the field name.
 
bool operator== (const PortFieldNode &other) const =default
 
std::string name () const override
 
- Public Member Functions inherited from Antares::Expressions::Nodes::Node
- Public Member Functions inherited from Antares::Expressions::IName
bool operator== (const IName &other) const =default
 
- Public Member Functions inherited from Antares::Expressions::Hashable
 Hashable (const std::string &s1, const std::string &s2)
 
bool operator== (const Hashable &other) const
 

Additional Inherited Members

- Public Attributes inherited from Antares::Expressions::Hashable
const std::string & s1
 
const std::string & s2
 

Detailed Description

Represents a port field node in a syntax tree.

Constructor & Destructor Documentation

◆ PortFieldNode()

Antares::Expressions::Nodes::PortFieldNode::PortFieldNode ( const std::string & port_name,
const std::string & field_name )
explicit

Constructs a port field node with the specified port and field names.

Parameters
port_nameThe port name.
field_nameThe field name.

Member Function Documentation

◆ getFieldName()

const std::string & Antares::Expressions::Nodes::PortFieldNode::getFieldName ( ) const

Retrieves the field name.

Returns
The field name.

◆ getPortName()

const std::string & Antares::Expressions::Nodes::PortFieldNode::getPortName ( ) const

Retrieves the port name.

Returns
The port name.

◆ name()

std::string Antares::Expressions::Nodes::PortFieldNode::name ( ) const
inlineoverridevirtual

The documentation for this class was generated from the following files: