#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 double | 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 482 of file node_impl.cpp.
References node_binary::left(), node::print(), and node_binary::right().
00484 { 00485 stream << std::setw(indent) << "" << "-\n"; 00486 left().print(stream, indent + 2); 00487 right().print(stream, indent + 2); 00488 }
| double node_subtract::evaluate_node | ( | ) | const [private, virtual] |
Implements node_binary.
Definition at line 490 of file node_impl.cpp.
References node_binary::evaluate_left(), and node_binary::evaluate_right().
00492 { 00493 return evaluate_left() - evaluate_right(); 00494 }
| void node_subtract::save_node | ( | std::ostream & | stream | ) | const [private, virtual] |
Implements node_binary.
Definition at line 496 of file node_impl.cpp.
References node_binary::left(), node_binary::right(), and node::save().
1.5.3