lib
Kross::Api::Function1< INSTANCE, P1 > Class Template Reference
#include <function.h>
Inheritance diagram for Kross::Api::Function1< INSTANCE, P1 >:

Detailed Description
template<class INSTANCE, typename P1>
class Kross::Api::Function1< INSTANCE, P1 >
Specialization of the Function0 which takes as additional parameter a const-value.
This const-value will be hidden for the scripting backend and is only passed through on function-call.
So, this class could be as example used to point to a function like;
Kross::Api::Object::Ptr myfunc(Kross::Api::List::Ptr, int myinteger)
this->addFunction("myfunctionname", new Kross::Api::Function1< MYCLASS, int >( this, // pointer to an instance of MYCLASS &MYCLASS::myfunction, // the method which should be wrapped 17 // the const-value we like to pass to the function. ) );
Definition at line 96 of file function.h.
Public Member Functions | |
Function1 (INSTANCE *instance, Method method, P1 p1) | |
Object::Ptr | call (List::Ptr args) |
Member Function Documentation
template<class INSTANCE, typename P1>
Object::Ptr Kross::Api::Function1< INSTANCE, P1 >::call | ( | List::Ptr | args | ) | [inline, virtual] |
Each function needs to implement the call-method which will be executed if the function itself should be executed.
Implements Kross::Api::Function.
Definition at line 106 of file function.h.
The documentation for this class was generated from the following file: