Catos Engine (Source) 0.0.1
Lightweight Game engine
Loading...
Searching...
No Matches
catos::MethodInvoker< ReturnType, ClassType, Args > Class Template Reference

MethodInvoker invokes the method (with args) given at creation. More...

#include <registry.h>

Public Member Functions

 MethodInvoker (ReturnType(ClassType::*ptr)(Args...))
 

Static Public Member Functions

static ReturnType callFunction (void *FuncInst, void *instance, Args... args)
 Runs the function.
 

Public Attributes

ReturnType(ClassType::* memPtr )(Args...)
 

Detailed Description

template<typename ReturnType, class ClassType, typename... Args>
class catos::MethodInvoker< ReturnType, ClassType, Args >

MethodInvoker invokes the method (with args) given at creation.

Constructor & Destructor Documentation

◆ MethodInvoker()

template<typename ReturnType , class ClassType , typename... Args>
catos::MethodInvoker< ReturnType, ClassType, Args >::MethodInvoker ( ReturnType(ClassType::*)(Args...) ptr)
inline

Member Function Documentation

◆ callFunction()

template<typename ReturnType , class ClassType , typename... Args>
static ReturnType catos::MethodInvoker< ReturnType, ClassType, Args >::callFunction ( void * FuncInst,
void * instance,
Args... args )
inlinestatic

Runs the function.

Member Data Documentation

◆ memPtr

template<typename ReturnType , class ClassType , typename... Args>
ReturnType(ClassType::* catos::MethodInvoker< ReturnType, ClassType, Args >::memPtr) (Args...)

The documentation for this class was generated from the following file: