#include <node_impl.hpp>
Public Member Functions | |
node_add (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 160 of file node_impl.hpp.
void node_add::print_node | ( | std::ostream & | stream, | |
int | indent | |||
) | const [private, virtual] |
Implements node_binary.
Definition at line 310 of file node_impl.cpp.
References node_binary::left(), node::print(), and node_binary::right().
00312 { 00313 stream << std::setw(indent) << "" << "+\n"; 00314 left().print(stream, indent + 2); 00315 right().print(stream, indent + 2); 00316 }
double node_add::evaluate_node | ( | ) | const [private, virtual] |
Implements node_binary.
Definition at line 318 of file node_impl.cpp.
References node_binary::evaluate_left(), and node_binary::evaluate_right().
00320 { 00321 return evaluate_left() + evaluate_right(); 00322 }