![]() |
FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
|
Callback functor. More...
#include <C_callback.hpp>
Public Types | |
using | CallbackFunction = void (*)(Types... args) |
Public Member Functions | |
CallbackFunctor (fge::CallbackFunctor< Types... >::CallbackFunction func) | |
Constructor. | |
void | call (Types... args) override |
Call the callback function with the given arguments. | |
bool | check (void *ptr) override |
Check if the given pointer is the same as the one used to construct the functor. | |
Protected Attributes | |
fge::CallbackFunctor< Types... >::CallbackFunction | g_function |
Callback functor.
Types | The list of arguments types passed to the functor |
|
explicit |
Constructor.
func | The callback function |
|
overridevirtual |
Call the callback function with the given arguments.
args | The list of arguments |
Implements fge::CallbackBase< Types... >.
|
inlineoverridevirtual |
Check if the given pointer is the same as the one used to construct the functor.
ptr | The pointer to check |
Implements fge::CallbackBase< Types... >.