Antares Simulator
Power System Simulator
Antares::Expressions::Nodes::TimeSumNode Class Referencefinal
Inheritance diagram for Antares::Expressions::Nodes::TimeSumNode:
Antares::Expressions::Nodes::ParentNode Antares::Expressions::Nodes::Node Antares::Expressions::IName

Public Member Functions

 TimeSumNode (Node *from, Node *to, Node *expression)
 Constructs a Time Sum node with the specified 'from', 'to' and 'expression' operands. More...
 
std::string name () const override
 
Nodefrom () const
 Retrieves a pointer to the right operand. More...
 
Nodeto () const
 Retrieves a pointer to the right operand. More...
 
Nodeexpression () const
 
- 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
 

Constructor & Destructor Documentation

◆ TimeSumNode()

Antares::Expressions::Nodes::TimeSumNode::TimeSumNode ( Node from,
Node to,
Node expression 
)
explicit

Constructs a Time Sum node with the specified 'from', 'to' and 'expression' operands.

Parameters
fromThe 'from' operand.
toThe 'to' operand.
expressionThe 'expression' operand.

Member Function Documentation

◆ from()

Node * Antares::Expressions::Nodes::TimeSumNode::from ( ) const

Retrieves a pointer to the right operand.

Returns
A pointer to the right operand.

◆ to()

Node * Antares::Expressions::Nodes::TimeSumNode::to ( ) const

Retrieves a pointer to the right operand.

Returns
A pointer to the right operand.

Retrieves a pointer to the ' operand.

Returns
A pointer to the left operand.

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