template<typename T>
class events::Event< T >
A standard Event as managed by FastArduino event API.
By default an event just holds a type as defined in events::Type
. It may also hold a value of any type T
, which you may use for any purpose you see fit.
Please note that calue type T
will have an impact on the byte size of each event, hence the size of your event queue. You should then select the smallest type that you need, and even void
if you do not need any additional value for your events.
All FastArduino API that produce events do not use any value for events, only their type, hence they will work with ANY Event<T>
you may define.
- Template Parameters
-
T | the type of value held by all events; this type must have public default and copy constructors. T shall not be a reference type. |
- See also
- events::Type
Definition at line 143 of file events.h.