![]() |
FastEngine 0.9.3
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 = void (TObject::*)(Types... args) |
Public Member Functions | |
CallbackObjectFunctor (fge::CallbackObjectFunctor< TObject, Types... >::CallbackFunctionObject func, TObject *object) | |
Constructor. | |
void | 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 | |
fge::CallbackObjectFunctor< TObject, Types... >::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< TObject, Types >::CallbackObjectFunctor | ( | fge::CallbackObjectFunctor< TObject, Types... >::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< 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< Types... >.