Calculator
Step 5
|
#include <node_impl.hpp>
Public Member Functions | |
node_identifier (std::string name) | |
node_identifier (std::istream &stream) | |
std::string const & | name () 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 std::string | evaluate_string () const override |
virtual void | save_node (std::ostream &stream) const override |
Private Attributes | |
std::string | name_ |
Additional Inherited Members | |
Static Public Member Functions inherited from node_impl | |
static std::shared_ptr< node_impl > | read_node (std::istream &stream) |
Identifier data type. Used for variable references.
Definition at line 81 of file node_impl.hpp.
node_identifier::node_identifier | ( | std::string | name | ) |
Definition at line 161 of file node_impl.cpp.
node_identifier::node_identifier | ( | std::istream & | stream | ) |
Definition at line 165 of file node_impl.cpp.
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 184 of file node_impl.cpp.
References node::evaluate(), get_variable(), and name().
|
overrideprivatevirtual |
std::string const & node_identifier::name | ( | ) | const |
Definition at line 172 of file node_impl.cpp.
References name_.
Referenced by evaluate_node(), evaluate_string(), print_node(), and save_node().
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
private |
Definition at line 92 of file node_impl.hpp.
Referenced by name().