◆ ArgIntListener
typedef void(* ArgIntListener) (void *arg, int value) |
◆ ArgListener
typedef void(* ArgListener) (void *arg) |
◆ IntIntVoidListener
typedef void(* IntIntVoidListener) (int value1, int value2, void *arg) |
◆ clearCallbacks()
template<int MAX_INT_LISTENER_COUNT>
◆ invokeArgIntCallbacks()
template<int MAX_INT_LISTENER_COUNT>
void invokeArgIntCallbacks |
( |
IntListenerArray< MAX_INT_LISTENER_COUNT > * |
array, |
|
|
int |
value |
|
) |
| |
Definition at line 93 of file listener_array.h.
93 {
96 void *arg = array->
args[i];
97 (listener)(arg, value);
98 }
99}
void * args[MAX_INT_LISTENER_COUNT]
VoidInt callbacks[MAX_INT_LISTENER_COUNT]
void(* ArgIntListener)(void *arg, int value)
◆ invokeCallbacks()
template<int MAX_INT_LISTENER_COUNT>
void invokeCallbacks |
( |
IntListenerArray< MAX_INT_LISTENER_COUNT > * |
array, |
|
|
int |
value |
|
) |
| |
◆ invokeIntIntCallbacks()
template<int MAX_INT_LISTENER_COUNT>
void invokeIntIntCallbacks |
( |
IntListenerArray< MAX_INT_LISTENER_COUNT > * |
array, |
|
|
int |
value, |
|
|
int |
value2 |
|
) |
| |
Definition at line 102 of file listener_array.h.
102 {
105 (listener)(value, value2);
106 }
107}
void(* VoidIntInt)(int, int)
◆ invokeIntIntVoidCallbacks()
template<int MAX_INT_LISTENER_COUNT>
void invokeIntIntVoidCallbacks |
( |
IntListenerArray< MAX_INT_LISTENER_COUNT > * |
array, |
|
|
int |
value, |
|
|
int |
value2 |
|
) |
| |
Definition at line 110 of file listener_array.h.
110 {
113 (listener)(value, value2, array->
args[i]);
114 }
115}
void(* IntIntVoidListener)(int value1, int value2, void *arg)
Go to the source code of this file.