Saga
Saga Game Engine
|
A wrapper around a shared_ptr to a function. More...
#include <eventmap.h>
Public Member Functions | |
Callback (std::shared_ptr< std::function< void(DataType...)> > func) | |
void | evoke (DataType... args) |
Call the function this stores. | |
Public Member Functions inherited from Saga::ICallback | |
virtual | ~ICallback ()=default |
A wrapper around a shared_ptr to a function.
DataType | the types of data the function accepts. |
|
inline |
|
inline |
Call the function this stores.
args | the parameters to the function. |