Unary operation node.
More...
#include <unaryop.hpp>
◆ UnaryOpNode() [1/2]
tcalc::ast::UnaryOpNode::UnaryOpNode |
( |
NodeType |
type | ) |
|
|
inlineexplicit |
Construct a new Unary Op Node object without operand.
- Parameters
-
◆ UnaryOpNode() [2/2]
Construct a new Unary Op Node object with operand.
- Parameters
-
type | Node type. |
operand | Operand node. |
◆ operand() [1/3]
TCALC_INLINE auto & tcalc::ast::UnaryOpNode::operand |
( |
| ) |
const |
|
inlinenoexcept |
Get operand.
- Returns
- const NodePtr<>& Operand node.
◆ operand() [2/3]
TCALC_INLINE auto & tcalc::ast::UnaryOpNode::operand |
( |
| ) |
|
|
inlinenoexcept |
Get operand.
- Returns
- NodePtr<>& Operand node.
◆ operand() [3/3]
TCALC_INLINE void tcalc::ast::UnaryOpNode::operand |
( |
NodePtr<> |
operand | ) |
|
|
inlinenoexcept |
The documentation for this class was generated from the following file: