#include <node_impl.hpp>
Public Member Functions | |
node_binary (node left, node right) | |
node | left () const |
node | right () const |
Protected Member Functions | |
double | evaluate_left () const |
double | evaluate_right () const |
Private Member Functions | |
virtual void | print_node (std::ostream &stream, int indent) const =0 |
virtual double | evaluate_node () const =0 |
Private Attributes | |
node | left_ |
node | right_ |
Definition at line 134 of file node_impl.hpp.
node node_binary::left | ( | ) | const |
Definition at line 263 of file node_impl.cpp.
References left_.
Referenced by evaluate_left(), node_divide::print_node(), node_multiply::print_node(), node_subtract::print_node(), and node_add::print_node().
00265 { 00266 return left_; 00267 }
node node_binary::right | ( | ) | const |
Definition at line 269 of file node_impl.cpp.
References right_.
Referenced by evaluate_right(), node_divide::print_node(), node_multiply::print_node(), node_subtract::print_node(), and node_add::print_node().
00271 { 00272 return right_; 00273 }
double node_binary::evaluate_left | ( | ) | const [protected] |
Definition at line 275 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().
double node_binary::evaluate_right | ( | ) | const [protected] |
Definition at line 281 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 double node_binary::evaluate_node | ( | ) | const [private, pure virtual] |
node node_binary::left_ [private] |
node node_binary::right_ [private] |