Binary operation base class. More...
#include <binaryop.hpp>
Public Member Functions | |
BinaryOpNode (NodeType type) | |
Construct a new Binary Op Node object with no subnodes. | |
BinaryOpNode (NodeType type, NodePtr<> left, NodePtr<> right) | |
Construct a new Binary Op Node object with subnodes. | |
TCALC_INLINE auto & | left () const noexcept |
Get the left subnode. | |
TCALC_INLINE auto & | left () noexcept |
Get the left subnode. | |
TCALC_INLINE void | left (NodePtr<> left) noexcept |
Set the left subnode. | |
TCALC_INLINE auto & | right () const noexcept |
Get the right subnode. | |
TCALC_INLINE auto & | right () noexcept |
Get the right subnode. | |
TCALC_INLINE void | right (NodePtr<> right) noexcept |
Set the right subnode. | |
![]() | |
Node (NodeType type) | |
Construct a new Node object. | |
TCALC_INLINE auto | type () const noexcept |
Get the node type. | |
Binary operation base class.
|
inlineexplicit |
|
inlinenoexcept |
Get the left subnode.
|
inlinenoexcept |
Get the left subnode.
|
inlinenoexcept |
Set the left subnode.
left | Left subnode. |
|
inlinenoexcept |
Get the right subnode.
|
inlinenoexcept |
Get the right subnode.
|
inlinenoexcept |
Set the right subnode.
right | Right subnode. |