#include <node_impl.hpp>

Public Member Functions | |
| node_negate (node operand) | |
| node_negate (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 170 of file node_impl.hpp.
| node_negate::node_negate | ( | node | operand | ) |
| node_negate::node_negate | ( | std::istream & | stream | ) |
| void node_negate::print_node | ( | std::ostream & | stream, | |
| int | indent | |||
| ) | const [private, virtual] |
Implements node_unary.
Definition at line 420 of file node_impl.cpp.
References node_unary::operand(), and node::print().
00422 { 00423 stream << std::setw(indent) << "" << "-\n"; 00424 operand().print(stream, indent + 2); 00425 }
| number node_negate::evaluate_node | ( | ) | const [private, virtual] |
Implements node_unary.
Definition at line 427 of file node_impl.cpp.
References node_unary::evaluate_operand().
00429 { 00430 return -evaluate_operand(); 00431 }
| void node_negate::save_node | ( | std::ostream & | stream | ) | const [private, virtual] |
Implements node_unary.
Definition at line 433 of file node_impl.cpp.
References node_unary::operand(), and node::save().
1.5.3