Base class for event or method callbacks. It stores the queue where to push the response. The queue can be obtained directly as an argument, or through an object.
More...
|
| | Callback ()=default |
| | ~Callback () override=default |
| | Callback (impl::WorkQueue *queue, CallbackFunc &&function) noexcept |
| | A callback with an explicit queue and a callable.
|
| | Callback (NativeObject *obj, CallbackFunc &&function) noexcept |
| | A callback where the queue is extracted from an object and a callable. If the object gets deleted the callback won't be executed.
|
| template<typename C> |
| | Callback (C *obj, void(C::*function)(MaybeRef< Args >...)) |
| | A callback where the queue is extracted from an object and a function pointer to a member. If the object gets deleted the callback won't be executed.
|
| template<typename C> |
| | Callback (C *obj, void(C::*function)(const InfoClass &, MaybeRef< Args >...)) |
| | A callback where the queue is extracted from an object and a function pointer to member that also receives meta information.
|
| void | invoke (const InfoClass &info, MaybeRef< Args >... args) const |
| | Invokes the function passed in the constructor.
|
template<typename InfoClass, typename... Args>
class sen::Callback< InfoClass, Args >
Base class for event or method callbacks. It stores the queue where to push the response. The queue can be obtained directly as an argument, or through an object.