#include <node_impl.hpp>

Public Member Functions | |
| node_unary (node operand) | |
| node | operand () const |
Protected Member Functions | |
| node_unary (std::istream &stream) | |
| number | evaluate_operand () const |
Private Member Functions | |
| virtual void | print_node (std::ostream &stream, int indent) const =0 |
| virtual number | evaluate_node () const =0 |
| virtual void | save_node (std::ostream &stream) const =0 |
Private Attributes | |
| node | operand_ |
Definition at line 135 of file node_impl.hpp.
| node_unary::node_unary | ( | node | operand | ) |
| node_unary::node_unary | ( | std::istream & | stream | ) | [protected] |
| node node_unary::operand | ( | ) | const |
Definition at line 367 of file node_impl.cpp.
References operand_.
Referenced by evaluate_operand(), node_negate::print_node(), and node_negate::save_node().
00369 { 00370 return operand_; 00371 }
| number node_unary::evaluate_operand | ( | ) | const [protected] |
Definition at line 373 of file node_impl.cpp.
References node::evaluate(), and operand().
Referenced by node_negate::evaluate_node().
| virtual void node_unary::print_node | ( | std::ostream & | stream, | |
| int | indent | |||
| ) | const [private, pure virtual] |
| virtual number node_unary::evaluate_node | ( | ) | const [private, pure virtual] |
| virtual void node_unary::save_node | ( | std::ostream & | stream | ) | const [private, pure virtual] |
node node_unary::operand_ [private] |
1.5.3