FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::CallbackLambda< Types > Class Template Reference

Callback lambda (with/without capture) More...

#include <C_callback.hpp>

Inheritance diagram for fge::CallbackLambda< Types >:
fge::CallbackBase< Types... >

Public Member Functions

template<typename TLambda >
 CallbackLambda (TLambda const &lambda)
 Constructor.
 
void call (Types... args) override
 Call the callback function with the given arguments.
 
bool check (void *ptr) override
 Always return false.
 

Protected Attributes

void * g_lambda
 
void(* g_executeLambda )(void *, Types...)
 
void(* g_deleteLambda )(void *)
 

Detailed Description

template<class... Types>
class fge::CallbackLambda< Types >

Callback lambda (with/without capture)

Template Parameters
TypesThe list of arguments types passed to the lambda

Constructor & Destructor Documentation

◆ CallbackLambda()

template<class... Types>
template<typename TLambda >
fge::CallbackLambda< Types >::CallbackLambda ( TLambda const & lambda)
explicit

Constructor.

Template Parameters
TLambdaThe lambda type
Parameters
lambdaThe callback lambda

Member Function Documentation

◆ call()

template<class... Types>
void fge::CallbackLambda< Types >::call ( Types... args)
overridevirtual

Call the callback function with the given arguments.

Parameters
argsThe list of arguments

Implements fge::CallbackBase< Types... >.

◆ check()

template<class... Types>
bool fge::CallbackLambda< Types >::check ( void * ptr)
inlineoverridevirtual

Always return false.

Parameters
ptrThe pointer to check (unused)
Returns
False

Implements fge::CallbackBase< Types... >.


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