Antares Simulator
Power System Simulator
Antares::Expressions::Nodes::DivisionNode Class Referencefinal

Represents a division node in a syntax tree. More...

#include <DivisionNode.h>

Inheritance diagram for Antares::Expressions::Nodes::DivisionNode:
Antares::Expressions::Nodes::BinaryNode Antares::Expressions::Nodes::ParentNode Antares::Expressions::Nodes::Node Antares::Expressions::IName

Public Member Functions

std::string name () const override
 
 BinaryNode (Node *left, Node *right)
 Constructs a binary node with the specified left and right operands. More...
 
- Public Member Functions inherited from Antares::Expressions::Nodes::BinaryNode
 BinaryNode (Node *left, Node *right)
 Constructs a binary node with the specified left and right operands. More...
 
Nodeleft () const
 Retrieves a pointer to the left operand. More...
 
Noderight () const
 Retrieves a pointer to the right operand. More...
 
- Public Member Functions inherited from Antares::Expressions::Nodes::ParentNode
template<typename... NodePtr>
 ParentNode (NodePtr... operands)
 
 ParentNode (const std::vector< Node * > &operands)
 Constructs a parent node with the specified operands. More...
 
 ParentNode (std::vector< Node * > &&operands)
 Constructs a parent node with the specified operands. Vector is moved. More...
 
const std::vector< Node * > & getOperands () const
 Retrieves the operands of the parent node. More...
 
const std::vector< const Node * > getConstOperands () const
 
Nodeoperator[] (std::size_t idx) const
 
size_t size () const
 
- Public Member Functions inherited from Antares::Expressions::IName
bool operator== (const IName &other) const =default
 

Detailed Description

Represents a division node in a syntax tree.

Member Function Documentation

◆ BinaryNode()

Antares::Expressions::Nodes::BinaryNode::BinaryNode
explicit

Constructs a binary node with the specified left and right operands.

Parameters
leftThe left operand.
rightThe right operand.
Note
BinaryNode(n1, n2) and BinaryNode(n2, n1) are not equivalent.

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