#include <node_impl.hpp>
Public Member Functions | |
node_subtract (node left, node right) | |
Private Member Functions | |
virtual void | print_node (std::ostream &stream, int indent) const |
virtual double | evaluate_node () const |
Definition at line 169 of file node_impl.hpp.
void node_subtract::print_node | ( | std::ostream & | stream, | |
int | indent | |||
) | const [private, virtual] |
Implements node_binary.
Definition at line 329 of file node_impl.cpp.
References node_binary::left(), node::print(), and node_binary::right().
00331 { 00332 stream << std::setw(indent) << "" << "-\n"; 00333 left().print(stream, indent + 2); 00334 right().print(stream, indent + 2); 00335 }
double node_subtract::evaluate_node | ( | ) | const [private, virtual] |
Implements node_binary.
Definition at line 337 of file node_impl.cpp.
References node_binary::evaluate_left(), and node_binary::evaluate_right().
00339 { 00340 return evaluate_left() - evaluate_right(); 00341 }