Catos Engine (Source) 0.0.1
Lightweight Game engine
Loading...
Searching...
No Matches
catos::Method Class Reference

Stores a function pointer for running it. More...

#include <registry.h>

Public Member Functions

template<typename ReturnType , class ClassType , typename... Args>
 Method (ReturnType(ClassType::*method)(Args...))
 
 ~Method ()
 
template<typename R , typename... Args>
invoke_function (void *instance, Args... args)
 
template<typename... Args>
void invoke_function (void *instance, Args... args)
 
void registerToPy (const char *name)
 

Public Attributes

cstr desc = "NONE"
 
std::string returnName = "void"
 
std::string parameters
 
std::string parameterNames
 

Detailed Description

Stores a function pointer for running it.

Constructor & Destructor Documentation

◆ Method()

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

◆ ~Method()

catos::Method::~Method ( )
inline

Member Function Documentation

◆ invoke_function() [1/2]

template<typename R , typename... Args>
R catos::Method::invoke_function ( void * instance,
Args... args )
inline

◆ invoke_function() [2/2]

template<typename... Args>
void catos::Method::invoke_function ( void * instance,
Args... args )
inline

◆ registerToPy()

void catos::Method::registerToPy ( const char * name)
inline

Member Data Documentation

◆ desc

cstr catos::Method::desc = "NONE"

◆ parameterNames

std::string catos::Method::parameterNames

◆ parameters

std::string catos::Method::parameters

◆ returnName

std::string catos::Method::returnName = "void"

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