CIRCT
20.0.0git
|
A function call which gets attached to a service port. More...
#include <Services.h>
Public Member Functions | |
void | connect (std::function< MessageData(const MessageData &)> callback, bool quick=false) |
Connect a callback to code which will be executed when the accelerator invokes the callback. More... | |
![]() | |
virtual | ~ServicePort ()=default |
virtual std::optional< std::string > | toString () const |
BundlePort (AppID id, std::map< std::string, ChannelPort & > channels) | |
Construct a port. More... | |
![]() | |
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... | |
WriteChannelPort & | getRawWrite (const std::string &name) const |
Get access to the raw byte streams of a channel. More... | |
ReadChannelPort & | getRawRead (const std::string &name) const |
const std::map< std::string, ChannelPort & > & | getChannels () const |
template<typename T > | |
T * | getAs () const |
Cast this Bundle port to a subclass which is actually useful. More... | |
bool | poll () |
Calls poll on all channels in the bundle and returns true if any of them returned true. More... | |
Private Member Functions | |
Callback (AcceleratorConnection &acc, AppID id, const std::map< std::string, ChannelPort & > &channels) | |
Private Attributes | |
ReadChannelPort & | arg |
WriteChannelPort & | result |
AcceleratorConnection & | acc |
Friends | |
class | CallService |
Additional Inherited Members | |
![]() | |
static bool | isWrite (BundleType::Direction bundleDir) |
Compute the direction of a channel given the bundle direction and the bundle port's direction. More... | |
A function call which gets attached to a service port.
Definition at line 285 of file Services.h.
|
private |
Definition at line 255 of file Services.cpp.
References esi::BundlePort::channels.
void CallService::Callback::connect | ( | std::function< MessageData(const MessageData &)> | callback, |
bool | quick = false |
||
) |
Connect a callback to code which will be executed when the accelerator invokes the callback.
The 'quick' flag indicates that the callback is sufficiently fast that it could be called in the same thread as the port callback.
Definition at line 264 of file Services.cpp.
Referenced by registerCallbacks().
|
friend |
Definition at line 286 of file Services.h.
|
private |
Definition at line 301 of file Services.h.
|
private |
Definition at line 299 of file Services.h.
|
private |
Definition at line 300 of file Services.h.