Antares Simulator
Power System Simulator
|
Public Member Functions | |
R | dispatch (const Nodes::Node *node, Args... args) |
virtual R | visit (const Nodes::SumNode *, Args... args)=0 |
Visits a SumNode and processes its children. | |
virtual R | visit (const Nodes::SubtractionNode *, Args... args)=0 |
Visits a SubtractionNode and processes its children. | |
virtual R | visit (const Nodes::MultiplicationNode *, Args... args)=0 |
Visits a MultiplicationNode and processes its children. | |
virtual R | visit (const Nodes::DivisionNode *, Args... args)=0 |
Visits a DivisionNode and processes its children. | |
virtual R | visit (const Nodes::EqualNode *, Args... args)=0 |
Visits an EqualNode and processes its children. | |
virtual R | visit (const Nodes::LessThanOrEqualNode *, Args... args)=0 |
Visits a LessThanOrEqualNode and processes its children. | |
virtual R | visit (const Nodes::GreaterThanOrEqualNode *, Args... args)=0 |
Visits a GreaterThanOrEqualNode and processes its children. | |
virtual R | visit (const Nodes::NegationNode *, Args... args)=0 |
Visits a NegationNode and processes its child. | |
virtual R | visit (const Nodes::LiteralNode *, Args... args)=0 |
Visits a LiteralNode. | |
virtual R | visit (const Nodes::VariableNode *, Args... args)=0 |
Visits a VariableNode. | |
virtual R | visit (const Nodes::ParameterNode *, Args... args)=0 |
Visits a ParameterNode. | |
virtual R | visit (const Nodes::PortFieldNode *, Args... args)=0 |
Visits a PortFieldNode. | |
virtual R | visit (const Nodes::PortFieldSumNode *, Args... args)=0 |
Visits a PortFieldSumNode. | |
virtual R | visit (const Nodes::ComponentVariableNode *, Args... args)=0 |
Visits a ComponentVariableNode. | |
virtual R | visit (const Nodes::ComponentParameterNode *, Args... args)=0 |
Visits a ComponentParameterNode. | |
![]() | |
virtual std::string | name () const =0 |
bool | operator== (const IName &other) const =default |
|
inline |
Dispatches a node to an appropriate visitor function based on its type.
This method uses a map that associates node types with their corresponding visitor functions. It attempts to find the visitor function for the provided node
. If a match is found, the corresponding visitor function is called with the node, and any additional arguments (args...
).
node | A pointer to the Node object to be visited. |
args | Variadic template arguments to be passed to the visitor functions. |
|
pure virtual |
Visits a ComponentParameterNode.
node | A pointer to the ComponentParameterNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a ComponentVariableNode.
node | A pointer to the ComponentVariableNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a DivisionNode and processes its children.
node | A pointer to the DivisionNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits an EqualNode and processes its children.
node | A pointer to the EqualNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a GreaterThanOrEqualNode and processes its children.
node | A pointer to the GreaterThanOrEqualNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a LessThanOrEqualNode and processes its children.
node | A pointer to the LessThanOrEqualNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a LiteralNode.
node | A pointer to the LiteralNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a MultiplicationNode and processes its children.
node | A pointer to the MultiplicationNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a NegationNode and processes its child.
node | A pointer to the NegationNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a ParameterNode.
node | A pointer to the ParameterNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a PortFieldNode.
node | A pointer to the PortFieldNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a PortFieldSumNode.
node | A pointer to the PortFieldSumNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a SubtractionNode and processes its children.
node | A pointer to the SubtractionNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a SumNode and processes its children.
node | A pointer to the SumNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |
|
pure virtual |
Visits a VariableNode.
node | A pointer to the VariableNode to be visited. |
args | Additional arguments to be passed to the visitor's methods. |