#include <node_impl.hpp>
Public Member Functions | |
node_number (number value) | |
node_number (std::istream &stream) | |
number | value () const |
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 |
Private Attributes | |
number | value_ |
Definition at line 69 of file node_impl.hpp.
node_number::node_number | ( | number | value | ) |
node_number::node_number | ( | std::istream & | stream | ) |
number node_number::value | ( | ) | const |
Definition at line 145 of file node_impl.cpp.
References value_.
Referenced by evaluate_node(), print_node(), and save_node().
00147 { 00148 return value_; 00149 }
void node_number::print_node | ( | std::ostream & | stream, | |
int | indent | |||
) | const [private, virtual] |
Implements node_impl.
Definition at line 151 of file node_impl.cpp.
References value().
00153 { 00154 stream << std::setw(indent) << "" << value() << '\n'; 00155 }
number node_number::evaluate_node | ( | ) | const [private, virtual] |
Implements node_impl.
Definition at line 157 of file node_impl.cpp.
References value().
00159 { 00160 return value(); 00161 }
void node_number::save_node | ( | std::ostream & | stream | ) | const [private, virtual] |
Implements node_impl.
Definition at line 163 of file node_impl.cpp.
References number::save(), and value().
number node_number::value_ [private] |