Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Expressions::Nodes::SumNode Class Reference
Inheritance diagram for Antares::Expressions::Nodes::SumNode:
Antares::Expressions::Nodes::Node Antares::Expressions::IName

Public Member Functions

template<typename... NodePtr>
 SumNode (NodePtr... operands)
 
 SumNode (const std::vector< Node * > &operands)
 Constructs a sum node with the specified operands.
 
 SumNode (std::vector< Node * > &&operands)
 Constructs a sum node with the specified operands. Vector is moved.
 
const std::vector< Node * > & getOperands () const
 Retrieves the operands of the sum.
 
Nodeoperator[] (std::size_t idx) const
 
size_t size () const
 
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
 

Constructor & Destructor Documentation

◆ SumNode() [1/2]

Antares::Expressions::Nodes::SumNode::SumNode ( const std::vector< Node * > & operands)
explicit

Constructs a sum node with the specified operands.

Parameters
operandsThe operands, collected in a vector

◆ SumNode() [2/2]

Antares::Expressions::Nodes::SumNode::SumNode ( std::vector< Node * > && operands)
inlineexplicit

Constructs a sum node with the specified operands. Vector is moved.

Parameters
operandsThe operands, collected in a vector

Member Function Documentation

◆ getOperands()

const std::vector< Node * > & Antares::Expressions::Nodes::SumNode::getOperands ( ) const

Retrieves the operands of the sum.

Returns
A vector of pointers to the operands of the sum.

◆ name()

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

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