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

Detailed Description
template<class INSTANCE, typename METHOD, class RET = ProxyValue<Kross::Api::Object,void>, class ARG1 = ProxyValue<Kross::Api::Object,void>, class ARG2 = ProxyValue<Kross::Api::Object,void>, class ARG3 = ProxyValue<Kross::Api::Object,void>, class ARG4 = ProxyValue<Kross::Api::Object,void>>
class Kross::Api::ProxyFunction< INSTANCE, METHOD, RET, ARG1, ARG2, ARG3, ARG4 >
The ProxyFunction template-class is used to publish any C/C++ method (not only slots) of a struct or class instance as a a Kross::Api::Function to Kross.
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) |
Friends | |
struct | ProxyFunctionCaller |
Constructor & Destructor Documentation
|
Constructor.
|
Member Function Documentation
|
This method got called if the wrapped method should be executed.
Implements Kross::Api::Function. |
The documentation for this class was generated from the following file: