#include <node_impl.hpp>
Public Member Functions | |
node_divide (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 187 of file node_impl.hpp.
void node_divide::print_node | ( | std::ostream & | stream, | |
int | indent | |||
) | const [private, virtual] |
Implements node_binary.
Definition at line 367 of file node_impl.cpp.
References node_binary::left(), node::print(), and node_binary::right().
00369 { 00370 stream << std::setw(indent) << "" << "/\n"; 00371 left().print(stream, indent + 2); 00372 right().print(stream, indent + 2); 00373 }
double node_divide::evaluate_node | ( | ) | const [private, virtual] |
Implements node_binary.
Definition at line 375 of file node_impl.cpp.
References node_binary::evaluate_left(), and node_binary::evaluate_right().
00377 { 00378 return evaluate_left() / evaluate_right(); 00379 }