![]() |
FastEngine 0.9.5
A multiplayer oriented 2D engine made with Vulkan.
|
Callback functor. More...
#include <C_callback.hpp>
Public Types | |
| using | CallbackFunction = TReturn (*)(Types... args) |
Public Member Functions | |
| CallbackFunctor (CallbackFunction func) | |
| Constructor. | |
| TReturn | 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 | |
| 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< TReturn, 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< TReturn, Types... >.