|
tin
1.5.9
|
#include <actor.h>

Public Types | |
| using | event_type = Event |
| Event type produced by this port. More... | |
| using | source_type = Source |
| Actor or adapter type referenced by this port. More... | |
Public Member Functions | |
| constexpr | output_port (Source &source) |
| bool | try_receive (Event &event) const requires actor_source< Source |
Public Attributes | |
| bool | Event |
Non-owning typed egress view for an actor source.
output_port narrows access to one event type. A link can receive values from this port without being able to mutate unrelated source state.
| using tsm::runtime::output_port< Event, Source >::event_type = Event |
Event type produced by this port.
| using tsm::runtime::output_port< Event, Source >::source_type = Source |
Actor or adapter type referenced by this port.
|
inlineexplicitconstexpr |
Bind the port to an existing source.
The caller owns source; the port stores only a pointer and must not outlive the referenced object.
| bool tsm::runtime::output_port< Event, Source >::try_receive | ( | Event & | event | ) | const |
Try to receive one event from the source.
Returns true and writes event when a value is available. Returns false without requiring progress when the source is currently empty.
| bool tsm::runtime::output_port< Event, Source >::Event |