Calculator
Step 3
|
#include <node_impl.hpp>
Public Member Functions | |
node_negate (node operand) | |
Public Member Functions inherited from node_unary | |
node_unary (node operand) | |
node | operand () const |
Public Member Functions inherited from node_impl | |
node_impl () | |
virtual | ~node_impl () |
void | print (std::ostream &stream, int indent) const |
double | evaluate () const |
std::string | to_string () const |
Private Member Functions | |
virtual void | print_node (std::ostream &stream, int indent) const override |
virtual double | evaluate_node () const override |
Additional Inherited Members | |
Protected Member Functions inherited from node_unary | |
double | evaluate_operand () const |
Unary negation.
Definition at line 129 of file node_impl.hpp.
node_negate::node_negate | ( | node | operand | ) |
Definition at line 207 of file node_impl.cpp.
|
overrideprivatevirtual |
Implements node_unary.
Definition at line 218 of file node_impl.cpp.
References node_unary::evaluate_operand().
|
overrideprivatevirtual |
Implements node_unary.
Definition at line 211 of file node_impl.cpp.
References node_unary::operand(), and node::print().