Calculator
Step 4
|
#include <node_impl.hpp>
Public Member Functions | |
node_number (double value) | |
double | value () const |
Public Member Functions inherited from node_impl | |
node_impl () | |
node_impl (node_impl &&)=default | |
node_impl & | operator= (node_impl &&)=default |
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 |
Private Member Functions | |
virtual void | print_node (std::ostream &stream, int indent) const override |
virtual double | evaluate_node () const override |
Private Attributes | |
double | value_ |
Number data type. Used for numeric literals.
Definition at line 57 of file node_impl.hpp.
node_number::node_number | ( | double | value | ) |
Definition at line 81 of file node_impl.cpp.
|
overrideprivatevirtual |
|
overrideprivatevirtual |
double node_number::value | ( | ) | const |
Definition at line 85 of file node_impl.cpp.
References value_.
Referenced by evaluate_node(), and print_node().
|
private |
Definition at line 65 of file node_impl.hpp.
Referenced by value().