Calculator
Step 3
|
#include <node_impl.hpp>
Public Member Functions | |
node_identifier (std::string identifier) | |
std::string const & | identifier () 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 |
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 | identifier_ |
Identifier data type. Used in assignments and for variable references in expressions.
Definition at line 66 of file node_impl.hpp.
node_identifier::node_identifier | ( | std::string | identifier | ) |
Definition at line 88 of file node_impl.cpp.
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 104 of file node_impl.cpp.
References get_variable(), and identifier().
|
overrideprivatevirtual |
Reimplemented from node_impl.
Definition at line 110 of file node_impl.cpp.
References identifier().
std::string const & node_identifier::identifier | ( | ) | const |
Definition at line 92 of file node_impl.cpp.
References identifier_.
Referenced by evaluate_node(), evaluate_string(), and print_node().
|
overrideprivatevirtual |
|
private |
Definition at line 75 of file node_impl.hpp.
Referenced by identifier().