#include <node_impl.hpp>
Public Member Functions | |
node_binary (node left, node right) | |
node | left () const |
node | right () const |
Protected Member Functions | |
node_binary (std::istream &stream) | |
number | evaluate_left () const |
number | evaluate_right () const |
Private Member Functions | |
virtual void | print_node (std::ostream &stream, int indent) const =0 |
virtual number | evaluate_node () const =0 |
virtual void | save_node (std::ostream &stream) const =0 |
Private Attributes | |
node | left_ |
node | right_ |
Definition at line 151 of file node_impl.hpp.
node_binary::node_binary | ( | std::istream & | stream | ) | [protected] |
node node_binary::left | ( | ) | const |
Definition at line 387 of file node_impl.cpp.
References left_.
Referenced by evaluate_left(), node_divide::print_node(), node_multiply::print_node(), node_subtract::print_node(), node_add::print_node(), node_divide::save_node(), node_multiply::save_node(), node_subtract::save_node(), and node_add::save_node().
00389 { 00390 return left_; 00391 }
node node_binary::right | ( | ) | const |
Definition at line 393 of file node_impl.cpp.
References right_.
Referenced by evaluate_right(), node_divide::print_node(), node_multiply::print_node(), node_subtract::print_node(), node_add::print_node(), node_divide::save_node(), node_multiply::save_node(), node_subtract::save_node(), and node_add::save_node().
00395 { 00396 return right_; 00397 }
number node_binary::evaluate_left | ( | ) | const [protected] |
Definition at line 399 of file node_impl.cpp.
References node::evaluate(), and left().
Referenced by node_divide::evaluate_node(), node_multiply::evaluate_node(), node_subtract::evaluate_node(), and node_add::evaluate_node().
number node_binary::evaluate_right | ( | ) | const [protected] |
Definition at line 405 of file node_impl.cpp.
References node::evaluate(), and right().
Referenced by node_divide::evaluate_node(), node_multiply::evaluate_node(), node_subtract::evaluate_node(), and node_add::evaluate_node().
virtual void node_binary::print_node | ( | std::ostream & | stream, | |
int | indent | |||
) | const [private, pure virtual] |
virtual number node_binary::evaluate_node | ( | ) | const [private, pure virtual] |
virtual void node_binary::save_node | ( | std::ostream & | stream | ) | const [private, pure virtual] |
node node_binary::left_ [private] |
node node_binary::right_ [private] |