Calculator
Step 4
|
#include <node_impl.hpp>
Public Member Functions | |
node_function_call (std::string name, node_list arguments) | |
std::string | name () const |
node_list const & | arguments () 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 | |
std::string | name_ |
node_list | arguments_ |
Function call.
Definition at line 101 of file node_impl.hpp.
node_function_call::node_function_call | ( | std::string | name, |
node_list | arguments | ||
) |
Definition at line 181 of file node_impl.cpp.
node_list const & node_function_call::arguments | ( | ) | const |
Definition at line 191 of file node_impl.cpp.
References arguments_.
Referenced by evaluate_node(), and print_node().
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 210 of file node_impl.cpp.
References arguments(), get_function(), node::get_parameters(), and name().
std::string node_function_call::name | ( | ) | const |
Definition at line 185 of file node_impl.cpp.
References name_.
Referenced by evaluate_node(), and print_node().
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 197 of file node_impl.cpp.
References arguments(), and name().
|
private |
Definition at line 111 of file node_impl.hpp.
Referenced by arguments().
|
private |
Definition at line 110 of file node_impl.hpp.
Referenced by name().