KSMethod Class Reference
A method holds a reference to some instance and some function. More...
#include <koscript_method.h>
Public Member Functions | |
KSMethod (KSModule *m, const KSValue::Ptr &obj, const KSValue::Ptr &func) | |
KSMethod (KSModule *m, const KSValue::Ptr &obj, const KSValue::Ptr &func, const QString &name) | |
bool | call (KSContext &context) |
KSValue * | object () |
KSValue * | function () |
KSModule * | module () |
QString | name () |
Detailed Description
A method holds a reference to some instance and some function.The function may be of the type KSFunction, KSBuiltinFunction or KSStructBuiltinFunction. The instance may be a KSObject or KSStruct or derived types.
Definition at line 40 of file koscript_method.h.
Constructor & Destructor Documentation
|
Use this method if the function is KSBuiltinFunction or KSStructBuiltinFunction. In this case we pass the name of the method. No copy of this name is made and the destructor does not free the string. So you should only pass constants here. Definition at line 50 of file koscript_method.h. |
The documentation for this class was generated from the following files: