Calculator
Step 5
|
#include <node_impl.hpp>
Public Member Functions | |
node_number (double value) | |
node_number (std::istream &stream) | |
double | value () const |
Public Member Functions inherited from node_impl | |
node_impl () | |
virtual | ~node_impl () |
void | print (std::ostream &stream, int indent) const |
double | evaluate () const |
std::string | to_string () const |
identifier_list const & | get_parameters () const |
void | save (std::ostream &stream) const |
Private Member Functions | |
virtual void | print_node (std::ostream &stream, int indent) const override |
virtual double | evaluate_node () const override |
virtual void | save_node (std::ostream &stream) const override |
Private Attributes | |
double | value_ |
Additional Inherited Members | |
Static Public Member Functions inherited from node_impl | |
static std::shared_ptr< node_impl > | read_node (std::istream &stream) |
Number data type. Used for numeric literals.
Definition at line 65 of file node_impl.hpp.
node_number::node_number | ( | double | value | ) |
Definition at line 125 of file node_impl.cpp.
node_number::node_number | ( | std::istream & | stream | ) |
Definition at line 129 of file node_impl.cpp.
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
double node_number::value | ( | ) | const |
Definition at line 136 of file node_impl.cpp.
References value_.
Referenced by evaluate_node(), print_node(), and save_node().
|
private |
Definition at line 75 of file node_impl.hpp.
Referenced by value().