Simo 0.0.1
Loading...
Searching...
No Matches
Simo::Ports::CallbackOutPort< Payload, ReturnType > Class Template Reference

#include <Port.h>

Inheritance diagram for Simo::Ports::CallbackOutPort< Payload, ReturnType >:
Simo::Port Simo::Ports::CallbackContractOutPort< Payload, ReturnType, Contract >

Public Member Functions

bool connect (Port *other) override
template<typename Arg>
std::optional< ReturnType > send (Arg &&payload)
template<typename Arg>
void send (Arg &&payload)
Public Member Functions inherited from Simo::Port
template<typename Self>
TypeId get_type_id (this Self &)
 Utility to the get type of class. Need the type at compile time.
std::string_view name () const
void name (const std::string_view name)

Protected Attributes

CallbackInPort< Payload, ReturnType > * connecting_port = nullptr
Protected Attributes inherited from Simo::Port
std::string name_

Friends

class CallbackInPort< Payload, ReturnType >

Additional Inherited Members

Public Types inherited from Simo::Port
using TypeId = boost::typeindex::type_index

Detailed Description

template<typename Payload, typename ReturnType>
class Simo::Ports::CallbackOutPort< Payload, ReturnType >

Templated input port that sends payloads to a CallbackOutPort of the same type.

Member Function Documentation

◆ connect()

template<typename Payload, typename ReturnType>
bool Simo::Ports::CallbackOutPort< Payload, ReturnType >::connect ( Port * other)
nodiscardoverridevirtual

Implements Simo::Port.


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