tcalc 0.2.0
 
Loading...
Searching...
No Matches
tcalc::ast::NumberNode Class Reference

Number AST node. More...

#include <number.hpp>

Inheritance diagram for tcalc::ast::NumberNode:
tcalc::ast::Node

Public Member Functions

 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.
 
- Public Member Functions inherited from tcalc::ast::Node
 Node (NodeType type)
 Construct a new Node object.
 
TCALC_INLINE auto type () const noexcept
 Get the node type.
 

Detailed Description

Number AST node.

Constructor & Destructor Documentation

◆ NumberNode()

tcalc::ast::NumberNode::NumberNode ( double  value)
inlineexplicit

Construct a new Number Node object.

Parameters
valueNumber value.

Member Function Documentation

◆ 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
valueNumber value.

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