20#ifndef KROSS_API_FUNCTION_H
21#define KROSS_API_FUNCTION_H
56 template< class INSTANCE>
64 Function0(INSTANCE* instance, Method method)
65 : m_instance(instance), m_method(method) {}
67 { return (m_instance->*m_method)(args); }
94 template< class INSTANCE, typename P1>
103 Function1(INSTANCE* instance, Method method, P1 p1)
104 : m_instance(instance), m_method(method), m_p1(p1) {}
106 { return (m_instance->*m_method)(args, m_p1); }
112 template< class INSTANCE, typename P1, typename P2>
117 INSTANCE* m_instance;
122 Function2(INSTANCE* instance, Method method, P1 p1, P2 p2)
123 : m_instance(instance), m_method(method), m_p1(p1), m_p2(p2) {}
125 { 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.
|