Calculator
Step 6
|
#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 () |
node_impl (node_impl &&)=default | |
node_impl & | operator= (node_impl &&)=default |
void | print (std::ostream &stream, int indent) const |
number | 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 number | 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 118 of file node_impl.hpp.
node_function_call::node_function_call | ( | std::string | name, |
node_list | arguments | ||
) |
Definition at line 276 of file node_impl.cpp.
node_function_call::node_function_call | ( | std::istream & | stream | ) |
Definition at line 280 of file node_impl.cpp.
node_list const & node_function_call::arguments | ( | ) | const |
Definition at line 301 of file node_impl.cpp.
References arguments_.
Referenced by evaluate_node(), print_node(), and save_node().
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 320 of file node_impl.cpp.
References arguments(), get_function(), node::get_parameters(), and name().
std::string node_function_call::name | ( | ) | const |
Definition at line 295 of file node_impl.cpp.
References name_.
Referenced by evaluate_node(), print_node(), and save_node().
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 307 of file node_impl.cpp.
References arguments(), and name().
|
overrideprivatevirtual |
Implements node_impl.
Definition at line 342 of file node_impl.cpp.
References arguments(), and name().
|
private |
Definition at line 130 of file node_impl.hpp.
Referenced by arguments().
|
private |
Definition at line 129 of file node_impl.hpp.
Referenced by name().