CIRCT  19.0.0git
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
esi::services::FuncService::Function Class Reference

A function call which gets attached to a service port. More...

#include <Services.h>

Inheritance diagram for esi::services::FuncService::Function:
Inheritance graph
[legend]
Collaboration diagram for esi::services::FuncService::Function:
Collaboration graph
[legend]

Public Member Functions

void connect ()
 
std::future< MessageDatacall (const MessageData &arg)
 
- Public Member Functions inherited from esi::services::ServicePort
virtual ~ServicePort ()=default
 
 BundlePort (AppID id, std::map< std::string, ChannelPort & > channels)
 Construct a port. More...
 
- Public Member Functions inherited from esi::BundlePort
 BundlePort (AppID id, std::map< std::string, ChannelPort & > channels)
 Construct a port. More...
 
virtual ~BundlePort ()=default
 
AppID getID () const
 Get the ID of the port. More...
 
WriteChannelPortgetRawWrite (const std::string &name) const
 Get access to the raw byte streams of a channel. More...
 
ReadChannelPortgetRawRead (const std::string &name) const
 
const std::map< std::string, ChannelPort & > & getChannels () const
 

Private Member Functions

 Function (AppID id, const std::map< std::string, ChannelPort & > &channels)
 

Private Attributes

WriteChannelPortarg
 
ReadChannelPortresult
 

Friends

class FuncService
 

Additional Inherited Members

- Static Public Member Functions inherited from esi::BundlePort
static bool isWrite (BundleType::Direction bundleDir)
 Compute the direction of a channel given the bundle direction and the bundle port's direction. More...
 

Detailed Description

A function call which gets attached to a service port.

Definition at line 128 of file Services.h.

Constructor & Destructor Documentation

◆ Function()

FuncService::Function::Function ( AppID  id,
const std::map< std::string, ChannelPort & > &  channels 
)
private

Definition at line 102 of file Services.cpp.

References esi::BundlePort::channels.

Member Function Documentation

◆ call()

std::future< MessageData > FuncService::Function::call ( const MessageData arg)

Definition at line 117 of file Services.cpp.

Referenced by esiaccel.types.FunctionPort::__call__().

◆ connect()

void FuncService::Function::connect ( )

Definition at line 111 of file Services.cpp.

Referenced by PYBIND11_MODULE().

Friends And Related Function Documentation

◆ FuncService

friend class FuncService
friend

Definition at line 129 of file Services.h.

Member Data Documentation

◆ arg

WriteChannelPort& esi::services::FuncService::Function::arg
private

Definition at line 137 of file Services.h.

◆ result

ReadChannelPort& esi::services::FuncService::Function::result
private

Definition at line 138 of file Services.h.


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