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

A port that sends values to other reactors. More...

#include <xronos/sdk/port.hh>

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

Public Member Functions

 OutputPort (std::string_view name, ReactorContext context)
 Construct a new OutputPort object.
 
- Public Member Functions inherited from xronos::sdk::Element
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.
 
- Public Member Functions inherited from xronos::sdk::EventSource< T >
virtual ~EventSource ()=default
 Correct deletion of an instance of a derived class is permitted.
 

Detailed Description

template<class T>
class xronos::sdk::OutputPort< T >

A port that sends values to other reactors.

The output port does not provide direct access for writing values. A reaction may declare a BaseReaction::PortEffect to send a value.

Template Parameters
TThe type of values carried by the port.

Constructor & Destructor Documentation

◆ OutputPort()

template<class T>
xronos::sdk::OutputPort< T >::OutputPort ( std::string_view name,
ReactorContext context )

Construct a new OutputPort object.

Parameters
nameThe name of the port.
contextThe current reactor's initialization context, which can be obtained using the Reactor::context method.

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