Reaction base class that is intended to be inherited by application code. More...
#include <xronos/sdk/reaction.hh>
Protected Member Functions | |
auto | self () noexcept -> R & |
Get a reference to the reaction's containing reactor. | |
![]() | |
auto | context () noexcept -> ReactionContext |
Get the context object that is needed to construct the reaction's members. | |
Additional Inherited Members | |
![]() | |
virtual | ~BaseReaction ()=default |
Correct deletion of an instance of a derived class is permitted. | |
Reaction base class that is intended to be inherited by application code.
Implementors should provide reaction functionality by overriding the BaseReaction::handler
method and should declare the triggers, sources, and effects that the reaction depends on as members of the derived class.
|
nodiscardprotectednoexcept |
Get a reference to the reaction's containing reactor.
This reference is valid at reaction construction time.