Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Expressions::Visitors::TimeIndexVisitor Class Reference

Represents a visitor for determining the time and scenario dependency of nodes in a syntax tree. More...

#include <TimeIndexVisitor.h>

Inheritance diagram for Antares::Expressions::Visitors::TimeIndexVisitor:
Antares::Expressions::Visitors::NodeVisitor< TimeIndex > Antares::Expressions::IName

Public Member Functions

 TimeIndexVisitor (std::unordered_map< const Nodes::Node *, TimeIndex > context)
 Constructs a time index visitor with the specified context.
 
std::string name () const override
 
- Public Member Functions inherited from Antares::Expressions::Visitors::NodeVisitor< TimeIndex >
TimeIndex dispatch (const Nodes::Node *node, Args... args)
 
virtual TimeIndex visit (const Nodes::SumNode *, Args... args)=0
 Visits a SumNode and processes its children.
 
virtual TimeIndex visit (const Nodes::SubtractionNode *, Args... args)=0
 Visits a SubtractionNode and processes its children.
 
virtual TimeIndex visit (const Nodes::MultiplicationNode *, Args... args)=0
 Visits a MultiplicationNode and processes its children.
 
virtual TimeIndex visit (const Nodes::DivisionNode *, Args... args)=0
 Visits a DivisionNode and processes its children.
 
virtual TimeIndex visit (const Nodes::EqualNode *, Args... args)=0
 Visits an EqualNode and processes its children.
 
virtual TimeIndex visit (const Nodes::LessThanOrEqualNode *, Args... args)=0
 Visits a LessThanOrEqualNode and processes its children.
 
virtual TimeIndex visit (const Nodes::GreaterThanOrEqualNode *, Args... args)=0
 Visits a GreaterThanOrEqualNode and processes its children.
 
virtual TimeIndex visit (const Nodes::NegationNode *, Args... args)=0
 Visits a NegationNode and processes its child.
 
virtual TimeIndex visit (const Nodes::LiteralNode *, Args... args)=0
 Visits a LiteralNode.
 
virtual TimeIndex visit (const Nodes::VariableNode *, Args... args)=0
 Visits a VariableNode.
 
virtual TimeIndex visit (const Nodes::ParameterNode *, Args... args)=0
 Visits a ParameterNode.
 
virtual TimeIndex visit (const Nodes::PortFieldNode *, Args... args)=0
 Visits a PortFieldNode.
 
virtual TimeIndex visit (const Nodes::PortFieldSumNode *, Args... args)=0
 Visits a PortFieldSumNode.
 
virtual TimeIndex visit (const Nodes::ComponentVariableNode *, Args... args)=0
 Visits a ComponentVariableNode.
 
virtual TimeIndex visit (const Nodes::ComponentParameterNode *, Args... args)=0
 Visits a ComponentParameterNode.
 
- Public Member Functions inherited from Antares::Expressions::IName
bool operator== (const IName &other) const =default
 

Detailed Description

Represents a visitor for determining the time and scenario dependency of nodes in a syntax tree.

Constructor & Destructor Documentation

◆ TimeIndexVisitor()

Antares::Expressions::Visitors::TimeIndexVisitor::TimeIndexVisitor ( std::unordered_map< const Nodes::Node *, TimeIndex > context)
explicit

Constructs a time index visitor with the specified context.

Parameters
contextThe context containing the time index for each node.

Member Function Documentation

◆ name()

std::string Antares::Expressions::Visitors::TimeIndexVisitor::name ( ) const
overridevirtual

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