#include <node_impl.hpp>
Public Member Functions | |
node_multiply (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 178 of file node_impl.hpp.
void node_multiply::print_node | ( | std::ostream & | stream, | |
int | indent | |||
) | const [private, virtual] |
Implements node_binary.
Definition at line 348 of file node_impl.cpp.
References node_binary::left(), node::print(), and node_binary::right().
00350 { 00351 stream << std::setw(indent) << "" << "*\n"; 00352 left().print(stream, indent + 2); 00353 right().print(stream, indent + 2); 00354 }
double node_multiply::evaluate_node | ( | ) | const [private, virtual] |
Implements node_binary.
Definition at line 356 of file node_impl.cpp.
References node_binary::evaluate_left(), and node_binary::evaluate_right().
00358 { 00359 return evaluate_left() * evaluate_right(); 00360 }