ContRap-Core
|
Class InternalFunction represents a function defined with the ContRap language. More...
#include <function.h>
Public Member Functions | |
InternalFunction (XMLDataPool *meta_info, DPtr code, SPtr< List > parameters, std::list< Option > &options, const std::string &type, const DPtr &condition=DPtr::bottom) | |
Creates a function from code specifications. | |
DPtr | execute (SPtr< List > &arguments, SPtr< List > &options, SPtr< Scope > &scope, Engine *engine) const |
Executes the function. | |
const DPtr & | get_code () const |
Returns the code. | |
Protected Attributes | |
DPtr | code |
Function code. |
Class InternalFunction represents a function defined with the ContRap language.
crp::InternalFunction::InternalFunction | ( | XMLDataPool * | meta_info, |
DPtr | code, | ||
SPtr< List > | parameters, | ||
std::list< Option > & | options, | ||
const std::string & | type, | ||
const DPtr & | condition = DPtr::bottom |
||
) |
DPtr crp::InternalFunction::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.
const DPtr& crp::InternalFunction::get_code | ( | ) | const [inline] |
Returns the code.
DPtr crp::InternalFunction::code [protected] |
Function code.