xronos-sdk 0.2.0
Xronos C++ SDK
 
Loading...
Searching...
No Matches
xronos::sdk::BaseReaction::Trigger< T > Class Template Reference

Access to a reactor element that this reaction may write to. More...

#include <xronos/sdk/reaction.hh>

Inheritance diagram for xronos::sdk::BaseReaction::Trigger< T >:
[legend]

Public Member Functions

 Trigger (const EventSource< T > &trigger, ReactionContext context)
 Construct a new Trigger object.
 

Detailed Description

template<class T>
class xronos::sdk::BaseReaction::Trigger< T >

Access to a reactor element that this reaction may write to.

Unlike a Source, a Trigger triggers the reaction handler to execute.

Template Parameters
TThe type of value carried by the trigger.

Constructor & Destructor Documentation

◆ Trigger()

template<class T>
xronos::sdk::BaseReaction::Trigger< T >::Trigger ( const EventSource< T > & trigger,
ReactionContext context )

Construct a new Trigger object.

Parameters
triggerAn event source of the containing reactor, which can be obtained using the Reaction::self method.
contextThe current reaction's initialization context, which can be obtained using the BaseReaction::context method.

The documentation for this class was generated from the following file: