![]() |
FastEngine 0.9.5
A multiplayer oriented 2D engine made with Vulkan.
|
Callback functor of a method with an object. More...
#include <C_callback.hpp>
Public Types | |
| using | CallbackFunctionObject = TReturn (TObject::*)(Types... args) |
Public Member Functions | |
| CallbackObjectFunctor (CallbackFunctionObject func, TObject *object) | |
| Constructor. | |
| TReturn | call (Types... args) override |
| Call the callback method with the given arguments. | |
| bool | check (void *ptr) override |
| Check if the given object pointer is the same as the one used to construct the functor. | |
Protected Attributes | |
| CallbackFunctionObject | g_functionObj |
| TObject * | g_object |
Callback functor of a method with an object.
| Types | The list of arguments types passed to the functor |
| TObject | The object type |
| fge::CallbackObjectFunctor< TReturn, TObject, Types >::CallbackObjectFunctor | ( | CallbackFunctionObject | func, |
| TObject * | object ) |
Constructor.
| func | The callback method of the object |
| object | The object pointer |
|
overridevirtual |
Call the callback method with the given arguments.
| args | The list of arguments |
Implements fge::CallbackBase< TReturn, Types... >.
|
inlineoverridevirtual |
Check if the given object pointer is the same as the one used to construct the functor.
| ptr | The object pointer to check |
Implements fge::CallbackBase< TReturn, Types... >.