#include <node_impl.hpp>
Public Member Functions | |
node_multiply (node left, node right) | |
node_multiply (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 203 of file node_impl.hpp.
node_multiply::node_multiply | ( | std::istream & | stream | ) |
void node_multiply::print_node | ( | std::ostream & | stream, | |
int | indent | |||
) | const [private, virtual] |
Implements node_binary.
Definition at line 512 of file node_impl.cpp.
References node_binary::left(), node::print(), and node_binary::right().
00514 { 00515 stream << std::setw(indent) << "" << "*\n"; 00516 left().print(stream, indent + 2); 00517 right().print(stream, indent + 2); 00518 }
number node_multiply::evaluate_node | ( | ) | const [private, virtual] |
Implements node_binary.
Definition at line 520 of file node_impl.cpp.
References node_binary::evaluate_left(), and node_binary::evaluate_right().
00522 { 00523 return evaluate_left() * evaluate_right(); 00524 }
void node_multiply::save_node | ( | std::ostream & | stream | ) | const [private, virtual] |
Implements node_binary.
Definition at line 526 of file node_impl.cpp.
References node_binary::left(), node_binary::right(), and node::save().