![]() |
FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
|
Callback lambda (with/without capture) More...
#include <C_callback.hpp>
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 *) |
Callback lambda (with/without capture)
Types | The list of arguments types passed to the lambda |
|
explicit |
Constructor.
TLambda | The lambda type |
lambda | The callback lambda |
|
overridevirtual |
Call the callback function with the given arguments.
args | The list of arguments |
Implements fge::CallbackBase< Types... >.
|
inlineoverridevirtual |
Always return false.
ptr | The pointer to check (unused) |
Implements fge::CallbackBase< Types... >.