A port that receives values from other reactors. More...
#include <xronos/sdk/port.hh>
Public Member Functions | |
InputPort (std::string_view name, ReactorContext context) | |
Construct a new InputPort object. | |
![]() | |
auto | name () const noexcept -> const std::string & |
The name of the current element. | |
auto | fqn () const noexcept -> const std::string & |
The fully qualified name of the current element. | |
![]() | |
virtual | ~EventSource ()=default |
Correct deletion of an instance of a derived class is permitted. | |
A port that receives values from other reactors.
The input port does not provide direct access to received values. A reaction may declare an input port as a BaseReaction::Trigger
or BaseReaction::Source
to read its value.
T | The type of values carried by the port. |
xronos::sdk::InputPort< T >::InputPort | ( | std::string_view | name, |
ReactorContext | context ) |
Construct a new InputPort
object.
name | The name of the port. |
context | The current reactor's initialization context, which can be obtained using the Reactor::context method. |