Variable node.
More...
#include <variable.hpp>
|
| | VarRefNode (std::string name) |
| | Construct a new Variable Node object.
|
| |
| TCALC_INLINE auto & | name () const noexcept |
| | Get variable name.
|
| |
| TCALC_INLINE void | name (std::string name) noexcept |
| | Set variable name.
|
| |
| | Node (NodeType type) |
| | Construct a new Node object.
|
| |
| TCALC_INLINE auto | type () const noexcept |
| | Get the node type.
|
| |
◆ VarRefNode()
| tcalc::ast::VarRefNode::VarRefNode |
( |
std::string |
name | ) |
|
|
inlineexplicit |
Construct a new Variable Node object.
- Parameters
-
◆ name() [1/2]
| TCALC_INLINE auto & tcalc::ast::VarRefNode::name |
( |
| ) |
const |
|
inlinenoexcept |
Get variable name.
- Returns
- const std::string& Variable name.
◆ name() [2/2]
| TCALC_INLINE void tcalc::ast::VarRefNode::name |
( |
std::string |
name | ) |
|
|
inlinenoexcept |
Set variable name.
- Parameters
-
The documentation for this class was generated from the following file: