Calculator
Step 4
|
#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 () | |
node_impl (node_impl &&)=default | |
node_impl & | operator= (node_impl &&)=default |
virtual | ~node_impl () |
void | print (std::ostream &stream, int indent) const |
double | evaluate () const |
std::string | to_string () const |
identifier_list const & | get_parameters () 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 146 of file node_impl.hpp.
node_negate::node_negate | ( | node | operand | ) |
Definition at line 279 of file node_impl.cpp.
|
overrideprivatevirtual |
Implements node_unary.
Definition at line 290 of file node_impl.cpp.
References node_unary::evaluate_operand().
|
overrideprivatevirtual |
Implements node_unary.
Definition at line 283 of file node_impl.cpp.
References node_unary::operand(), and node::print().