#include <BaseFunction.h>
Public Types | |
| typedef std::vector < cl7::string_type > | ParamNames |
| typedef std::map < cl7::string_type, const Value * > | Args |
| typedef bool(* | Callback )(VirtualMachine *vm, RuntimeEnvironment *env, Args &args, Value *result, ValueHandler *value_handler) |
Public Member Functions | |
| const cl7::string_type & | get_definition () const |
| const cl7::string_type & | get_name () const |
| const ParamNames & | get_param_names () const |
| bool | init (const cl7::string_type &definition) |
| virtual bool | validate () const =0 |
| virtual bool | call (VirtualMachine *vm, RuntimeEnvironment *env, Args &args, Value *result, ValueHandler *value_handler) const =0 |
Public Attributes | |
| friend | VirtualMachine |
Protected Member Functions | |
| BaseFunction (void) | |
| virtual | ~BaseFunction (void) |
| BaseFunction (const cl7::string_type &definition) | |
| BaseFunction (const BaseFunction &rhs) | |
| BaseFunction & | operator= (const BaseFunction &rhs) |
| void | swap (BaseFunction &rhs) |
| typedef std::map<cl7::string_type, const Value*> el7::scripting::BaseFunction::Args |
| typedef bool(* el7::scripting::BaseFunction::Callback)(VirtualMachine *vm, RuntimeEnvironment *env, Args &args, Value *result, ValueHandler *value_handler) |
| typedef std::vector<cl7::string_type> el7::scripting::BaseFunction::ParamNames |
| el7::scripting::BaseFunction::BaseFunction | ( | void | ) | [protected] |
Default constructor.
Default contructor.
| el7::scripting::BaseFunction::~BaseFunction | ( | void | ) | [protected, virtual] |
Destructor.
| el7::scripting::BaseFunction::BaseFunction | ( | const cl7::string_type & | definition | ) | [protected] |
Explicit constructor.
Explicit contructor.
| el7::scripting::BaseFunction::BaseFunction | ( | const BaseFunction & | rhs | ) | [protected] |
Copy constructor.
| virtual bool el7::scripting::BaseFunction::call | ( | VirtualMachine * | vm, | |
| RuntimeEnvironment * | env, | |||
| Args & | args, | |||
| Value * | result, | |||
| ValueHandler * | value_handler | |||
| ) | const [pure virtual] |
Calls the associated native callback function.
Implemented in el7::scripting::ExternFunction, and el7::scripting::InternFunction.
| const cl7::string_type& el7::scripting::BaseFunction::get_definition | ( | ) | const [inline] |
Returns the definition of this function.
| const cl7::string_type& el7::scripting::BaseFunction::get_name | ( | ) | const [inline] |
Returns the name of this function.
| const ParamNames& el7::scripting::BaseFunction::get_param_names | ( | ) | const [inline] |
Returns the parameter names expected by this function.
| bool el7::scripting::BaseFunction::init | ( | const cl7::string_type & | definition | ) |
Initializes this function object.
| BaseFunction & el7::scripting::BaseFunction::operator= | ( | const BaseFunction & | rhs | ) | [protected] |
Copy assignment operator.
| void el7::scripting::BaseFunction::swap | ( | BaseFunction & | rhs | ) | [protected] |
Swap operation.
| virtual bool el7::scripting::BaseFunction::validate | ( | ) | const [pure virtual] |
Validates this function object (for debugging purposes).
Implemented in el7::scripting::ExternFunction, and el7::scripting::InternFunction.
Reimplemented in el7::scripting::ExternFunction, and el7::scripting::InternFunction.
1.7.1