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

A port that receives values from other reactors. More...

#include <xronos/sdk/port.hh>

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

Public Member Functions

 InputPort (std::string_view name, ReactorContext context)
 Construct a new InputPort 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::InputPort< T >

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.

Template Parameters
TThe type of values carried by the port.

Constructor & Destructor Documentation

◆ InputPort()

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

Construct a new InputPort 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: