Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Expressions::Nodes::Leaf< T > Class Template Reference

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

#include <Leaf.h>

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

Public Member Functions

 Leaf (const T &value)
 Constructs a leaf node with the specified value.
 
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
virtual std::string name () const =0
 
bool operator== (const IName &other) const =default
 

Detailed Description

template<class T>
class Antares::Expressions::Nodes::Leaf< T >

Represents a leaf node in a syntax tree.

Template Parameters
TThe type of the value stored in the leaf node.

Constructor & Destructor Documentation

◆ Leaf()

template<class T >
Antares::Expressions::Nodes::Leaf< T >::Leaf ( const T & value)
inlineexplicit

Constructs a leaf node with the specified value.

Parameters
valueThe value to store in the leaf node.

Member Function Documentation

◆ value()

template<class T >
T Antares::Expressions::Nodes::Leaf< T >::value ( ) const
inline

Retrieves the value stored in the leaf node.

Returns
The value stored in the leaf node.

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