|
Calculator
Step 5
|
#include <node_impl.hpp>
Public Member Functions | |
| node_negate (node operand) | |
| node_negate (std::istream &stream) | |
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 |
| identifier_list const & | get_parameters () const |
| void | save (std::ostream &stream) const |
Private Member Functions | |
| virtual void | print_node (std::ostream &stream, int indent) const override |
| virtual double | evaluate_node () const override |
| virtual void | save_node (std::ostream &stream) const override |
Additional Inherited Members | |
Static Public Member Functions inherited from node_impl | |
| static std::shared_ptr< node_impl > | read_node (std::istream &stream) |
Protected Member Functions inherited from node_unary | |
| node_unary (std::istream &stream) | |
| double | evaluate_operand () const |
Unary negation.
Definition at line 166 of file node_impl.hpp.
| node_negate::node_negate | ( | node | operand | ) |
Definition at line 405 of file node_impl.cpp.
| node_negate::node_negate | ( | std::istream & | stream | ) |
Definition at line 409 of file node_impl.cpp.
|
overrideprivatevirtual |
Implements node_unary.
Definition at line 420 of file node_impl.cpp.
References node_unary::evaluate_operand().
|
overrideprivatevirtual |
Implements node_unary.
Definition at line 413 of file node_impl.cpp.
References node_unary::operand(), and node::print().
|
overrideprivatevirtual |
Implements node_unary.
Definition at line 426 of file node_impl.cpp.
References node_unary::operand(), and node::save().
1.8.5