#include <node_impl.hpp>

Public Member Functions | |
| node_subtract (node left, node right) | |
| node_subtract (std::istream &stream) | |
Private Member Functions | |
| virtual void | print_node (std::ostream &stream, int indent) const |
| virtual number | evaluate_node () const |
| virtual void | save_node (std::ostream &stream) const |
Definition at line 192 of file node_impl.hpp.
| node_subtract::node_subtract | ( | std::istream & | stream | ) |
| void node_subtract::print_node | ( | std::ostream & | stream, | |
| int | indent | |||
| ) | const [private, virtual] |
Implements node_binary.
Definition at line 481 of file node_impl.cpp.
References node_binary::left(), node::print(), and node_binary::right().
00483 { 00484 stream << std::setw(indent) << "" << "-\n"; 00485 left().print(stream, indent + 2); 00486 right().print(stream, indent + 2); 00487 }
| number node_subtract::evaluate_node | ( | ) | const [private, virtual] |
Implements node_binary.
Definition at line 489 of file node_impl.cpp.
References node_binary::evaluate_left(), and node_binary::evaluate_right().
00491 { 00492 return evaluate_left() - evaluate_right(); 00493 }
| void node_subtract::save_node | ( | std::ostream & | stream | ) | const [private, virtual] |
Implements node_binary.
Definition at line 495 of file node_impl.cpp.
References node_binary::left(), node_binary::right(), and node::save().
1.5.3