Access to a reactor element that this reaction may write to. More...
#include <xronos/sdk/reaction.hh>
Public Member Functions | |
Trigger (const EventSource< T > &trigger, ReactionContext context) | |
Construct a new Trigger object. | |
Access to a reactor element that this reaction may write to.
Unlike a Source
, a Trigger
triggers the reaction handler to execute.
T | The type of value carried by the trigger. |
xronos::sdk::BaseReaction::Trigger< T >::Trigger | ( | const EventSource< T > & | trigger, |
ReactionContext | context ) |
Construct a new Trigger object.
trigger | An event source of the containing reactor, which can be obtained using the Reaction::self method. |
context | The current reaction's initialization context, which can be obtained using the BaseReaction::context method. |