20#ifndef KROSS_API_FUNCTION_H
21#define KROSS_API_FUNCTION_H
23#include "../main/krossconfig.h"
57 template< class INSTANCE>
65 Function0(INSTANCE* instance, Method method)
66 : m_instance(instance), m_method(method) {}
68 { return (m_instance->*m_method)(args); }
95 template< class INSTANCE, typename P1>
100 INSTANCE* m_instance;
104 Function1(INSTANCE* instance, Method method, P1 p1)
105 : m_instance(instance), m_method(method), m_p1(p1) {}
107 { return (m_instance->*m_method)(args, m_p1); }
113 template< class INSTANCE, typename P1, typename P2>
118 INSTANCE* m_instance;
123 Function2(INSTANCE* instance, Method method, P1 p1, P2 p2)
124 : m_instance(instance), m_method(method), m_p1(p1), m_p2(p2) {}
126 { return (m_instance->*m_method)(args, m_p1, m_p2); }
Object::Ptr call(List::Ptr args) Each function needs to implement the call-method which will be executed if the function itself should...
Object::Ptr call(List::Ptr args) Each function needs to implement the call-method which will be executed if the function itself should...
Object::Ptr call(List::Ptr args) Each function needs to implement the call-method which will be executed if the function itself should...
The base class for functions.
virtual Object::Ptr call(List::Ptr)=0 Each function needs to implement the call-method which will be executed if the function itself should...
TDESharedPtr< List > Ptr Shared pointer to implement reference-counting.
TDESharedPtr< Object > Ptr Shared pointer to implement reference-counting.
The common Kross API used as common codebase.
The Kross scripting bridge to embed scripting functionality into an application.
|