Number AST node.
More...
#include <number.hpp>
|
| | NumberNode (double value) |
| | Construct a new Number Node object.
|
| |
| TCALC_INLINE auto | value () const noexcept |
| | Get the number value.
|
| |
| TCALC_INLINE void | value (double value) noexcept |
| | Set the number value.
|
| |
| | Node (NodeType type) |
| | Construct a new Node object.
|
| |
| TCALC_INLINE auto | type () const noexcept |
| | Get the node type.
|
| |
◆ NumberNode()
| tcalc::ast::NumberNode::NumberNode |
( |
double |
value | ) |
|
|
inlineexplicit |
Construct a new Number Node object.
- Parameters
-
◆ value() [1/2]
| TCALC_INLINE auto tcalc::ast::NumberNode::value |
( |
| ) |
const |
|
inlinenoexcept |
Get the number value.
- Returns
- double Number value.
◆ value() [2/2]
| TCALC_INLINE void tcalc::ast::NumberNode::value |
( |
double |
value | ) |
|
|
inlinenoexcept |
Set the number value.
- Parameters
-
The documentation for this class was generated from the following file: