Declares a reaction trigger and provides read access to the triggering EventSource. More...
#include <xronos/sdk/reaction.hh>
Public Member Functions | |
| Trigger (const InputPort< T > &trigger, const ReactionContext &context) | |
| Constructor.   | |
| Trigger (const OutputPort< T > &trigger, const ReactionContext &context) | |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  | |
| Trigger (const PhysicalEvent< T > &trigger, const ReactionContext &context) | |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  | |
| Trigger (const ProgrammableTimer< T > &trigger, const ReactionContext &context) | |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  | |
| Trigger (const PeriodicTimer &trigger, const ReactionContext &context) | |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  | |
| Trigger (const Startup &trigger, const ReactionContext &context) | |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  | |
| Trigger (const Shutdown &trigger, const ReactionContext &context) | |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  | |
| auto | get () const noexcept -> ImmutableValuePtr< T > requires(!std::is_same_v< T, void >) | 
| Get the value of a currently present event.   | |
| auto | is_present () const noexcept -> bool | 
| Check if an event is present at the current timestamp.   | |
Declares a reaction trigger and provides read access to the triggering EventSource.
| T | The value type associated with events received on the triggering event source. | 
| xronos::sdk::BaseReaction::Trigger< T >::Trigger | ( | const InputPort< T > & | trigger, | 
| const ReactionContext & | context ) | 
Constructor.
Constructing a Trigger automatically registers the given event source as a trigger of the reaction, causing the reaction handler to run whenever the event source emits an event.
      
  | 
  nodiscardnoexcept | 
Get the value of a currently present event.
      
  | 
  nodiscardnoexcept | 
Check if an event is present at the current timestamp.