Base module
Action
Default action type for executing synchronized callbacks.
Action
#include <icy/ipc.h>Default action type for executing synchronized callbacks.
Public Attributes
| Return | Name | Description |
|---|---|---|
Callback | target | The callable to invoke when the action is dispatched. |
void * | arg | Optional opaque pointer passed to the callback. |
std::string | data | Optional string payload passed to the callback. |
target
Callback targetThe callable to invoke when the action is dispatched.
arg
void * argOptional opaque pointer passed to the callback.
data
std::string dataOptional string payload passed to the callback.
Public Methods
| Return | Name | Description |
|---|---|---|
Action inline | Constructs an Action with the given callback, optional argument, and optional data. |
Action
inline
inline Action(Callback target, void * arg, const std::string & data)Constructs an Action with the given callback, optional argument, and optional data.
Parameters
targetCallback to invoke on dispatch.argOpaque pointer passed to the callback (default: nullptr).dataString payload passed to the callback (default: empty).
Public Types
| Name | Description |
|---|---|
Callback |
Callback
std::function< void(const Action &)> Callback()