ContRap-Core
|
Class ExternalFunction encapsulates the external function type as an object. More...
#include <function.h>
Public Member Functions | |
ExternalFunction (XMLDataPool *meta_info, MetaFunction function, const SPtr< List > ¶meters, std::list< Option > &options, const std::string &type, const std::string &condition="") | |
Creates an atomic function from a raw function pointer. | |
virtual void | destroy () |
Destroys the current instance. | |
virtual const std::string | get_type_name () |
Returns the type of the object. | |
DPtr | execute (SPtr< List > &arguments, SPtr< List > &options, SPtr< Scope > &scope, Engine *engine) const |
Executes the function. | |
Protected Attributes | |
MetaFunction | function |
Function address. |
Class ExternalFunction encapsulates the external function type as an object.
crp::ExternalFunction::ExternalFunction | ( | XMLDataPool * | meta_info, |
MetaFunction | function, | ||
const SPtr< List > & | parameters, | ||
std::list< Option > & | options, | ||
const std::string & | type, | ||
const std::string & | condition = "" |
||
) |
virtual void crp::ExternalFunction::destroy | ( | ) | [inline, virtual] |
Destroys the current instance.
DPtr crp::ExternalFunction::execute | ( | SPtr< List > & | arguments, |
SPtr< List > & | options, | ||
SPtr< Scope > & | scope, | ||
Engine * | engine | ||
) | const [virtual] |
Executes the function.
arguments | Arguments list |
scope | Evaluation scope |
engine | Evaluation engine |
Implements crp::AtomicFunction.
virtual const std::string crp::ExternalFunction::get_type_name | ( | ) | [inline, virtual] |
Returns the type of the object.
MetaFunction crp::ExternalFunction::function [protected] |
Function address.