Calculator
Step 5
|
#include <node_impl.hpp>
Public Member Functions | |
node_function_call (std::string name, node_list arguments) | |
node_function_call (std::istream &stream) | |
std::string | name () const |
node_list const & | arguments () 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 void | save_node (std::ostream &stream) const override |
Private Attributes | |
std::string | name_ |
node_list | arguments_ |
Additional Inherited Members | |
Static Public Member Functions inherited from node_impl | |
static std::shared_ptr< node_impl > | read_node (std::istream &stream) |
Function call.
Definition at line 115 of file node_impl.hpp.
node_function_call::node_function_call | ( | std::string | name, |
node_list | arguments | ||
) |
Definition at line 277 of file node_impl.cpp.
node_function_call::node_function_call | ( | std::istream & | stream | ) |
Definition at line 281 of file node_impl.cpp.
node_list const & node_function_call::arguments | ( | ) | const |
Definition at line 302 of file node_impl.cpp.
References arguments_.
Referenced by evaluate_node(), print_node(), and save_node().
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 321 of file node_impl.cpp.
References arguments(), get_function(), node::get_parameters(), and name().
std::string node_function_call::name | ( | ) | const |
Definition at line 296 of file node_impl.cpp.
References name_.
Referenced by evaluate_node(), print_node(), and save_node().
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 308 of file node_impl.cpp.
References arguments(), and name().
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 343 of file node_impl.cpp.
References arguments(), and name().
|
private |
Definition at line 127 of file node_impl.hpp.
Referenced by arguments().
|
private |
Definition at line 126 of file node_impl.hpp.
Referenced by name().