#include <proxy.h>
Inheritance diagram for Kross::Api::ProxyFunction< INSTANCE, METHOD, RET, ARG1, ARG2, ARG3, ARG4 >:


With this class we don't need to have a method-wrapper for each single function what a) should reduce the code needed for wrappers and b) is more typesafe cause the connection to the C/C++ method is done on compiletime.
Definition at line 71 of file proxy.h.
Public Member Functions | |
| ProxyFunction (INSTANCE *instance, const METHOD &method) | |
| Object::Ptr | call (List::Ptr args) |
Classes | |
| struct | ProxyFunctionCaller |
| struct | ProxyFunctionCaller< PROXYFUNC, void > |
|
||||||||||||||||
|
Constructor.
Definition at line 111 of file proxy.h.
|
|
||||||||||
|
This method got called if the wrapped method should be executed.
Implements Kross::Api::Function. Definition at line 123 of file proxy.h. 00123 { 00124 return ProxyFunctionCaller<ProxyFunction, typename RET::type>::exec(this, 00125 Kross::Api::Object::fromObject<typename ARG1::object>(args->item(0))->operator typename ARG1::type(), 00126 Kross::Api::Object::fromObject<typename ARG2::object>(args->item(1))->operator typename ARG2::type(), 00127 Kross::Api::Object::fromObject<typename ARG3::object>(args->item(2))->operator typename ARG3::type(), 00128 Kross::Api::Object::fromObject<typename ARG4::object>(args->item(3))->operator typename ARG4::type() 00129 ); 00130 }
|
1.4.6