|
Calculator
Step 6
|
#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 () |
| node_impl (node_impl &&)=default | |
| node_impl & | operator= (node_impl &&)=default |
| void | print (std::ostream &stream, int indent) const |
| number | 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 number | 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) | |
| number | evaluate_operand () const |
Unary negation.
Definition at line 169 of file node_impl.hpp.
| node_negate::node_negate | ( | node | operand | ) |
Definition at line 404 of file node_impl.cpp.
| node_negate::node_negate | ( | std::istream & | stream | ) |
Definition at line 408 of file node_impl.cpp.
|
overrideprivatevirtual |
Implements node_unary.
Definition at line 419 of file node_impl.cpp.
References node_unary::evaluate_operand().
|
overrideprivatevirtual |
Implements node_unary.
Definition at line 412 of file node_impl.cpp.
References node_unary::operand(), and node::print().
|
overrideprivatevirtual |
Implements node_unary.
Definition at line 425 of file node_impl.cpp.
References node_unary::operand(), and node::save().
1.8.5