#include <node_impl.hpp>
Public Member Functions | |
node_unary (node operand) | |
node | operand () const |
Protected Member Functions | |
double | evaluate_operand () const |
Private Member Functions | |
virtual void | print_node (std::ostream &stream, int indent) const =0 |
virtual double | evaluate_node () const =0 |
Private Attributes | |
node | operand_ |
Definition at line 120 of file node_impl.hpp.
node_unary::node_unary | ( | node | operand | ) |
node node_unary::operand | ( | ) | const |
Definition at line 247 of file node_impl.cpp.
References operand_.
Referenced by evaluate_operand(), and node_negate::print_node().
00249 { 00250 return operand_; 00251 }
double node_unary::evaluate_operand | ( | ) | const [protected] |
Definition at line 253 of file node_impl.cpp.
References node::evaluate(), and operand().
Referenced by node_negate::evaluate_node().
virtual void node_unary::print_node | ( | std::ostream & | stream, | |
int | indent | |||
) | const [private, pure virtual] |
virtual double node_unary::evaluate_node | ( | ) | const [private, pure virtual] |
node node_unary::operand_ [private] |