|
Calculator
Step 4
|
#include <node_impl.hpp>
Public Member Functions | |
| node_identifier (std::string name) | |
| std::string const & | name () 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 |
| virtual std::string | evaluate_string () const override |
Private Attributes | |
| std::string | name_ |
Identifier data type. Used for variable references.
Definition at line 71 of file node_impl.hpp.
| node_identifier::node_identifier | ( | std::string | name | ) |
Definition at line 103 of file node_impl.cpp.
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 119 of file node_impl.cpp.
References node::evaluate(), get_variable(), and name().
|
overrideprivatevirtual |
| std::string const & node_identifier::name | ( | ) | const |
Definition at line 107 of file node_impl.cpp.
References name_.
Referenced by evaluate_node(), evaluate_string(), and print_node().
|
overrideprivatevirtual |
|
private |
Definition at line 80 of file node_impl.hpp.
Referenced by name().
1.8.5