Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Expressions::Nodes::LiteralNode Class Reference

Represents a literal node in a syntax tree, storing a double value. More...

#include <LiteralNode.h>

Inheritance diagram for Antares::Expressions::Nodes::LiteralNode:
Antares::Expressions::Nodes::Leaf< double > Antares::Expressions::Nodes::Node Antares::Expressions::IName

Public Member Functions

std::string name () const override
 
- Public Member Functions inherited from Antares::Expressions::Nodes::Leaf< double >
 Leaf (const double &value)
 Constructs a leaf node with the specified value.
 
double value () const
 Retrieves the value stored in the leaf node.
 
- Public Member Functions inherited from Antares::Expressions::Nodes::Node
- Public Member Functions inherited from Antares::Expressions::IName
bool operator== (const IName &other) const =default
 

Detailed Description

Represents a literal node in a syntax tree, storing a double value.

Member Function Documentation

◆ name()

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

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