CIRCT 20.0.0git
|
Since engines can support multiple channels BUT not necessarily all of the channels in a bundle, a mapping from bundle channels to engines is needed. More...
#include <Engines.h>
Public Member Functions | |
PortMap | requestPorts (const AppIDPath &idPath, const BundleType *bundleType) const |
Request ports for all the channels in a bundle. | |
Private Member Functions | |
void | setEngine (const std::string &channelName, Engine *engine) |
Set a particlar engine for a particular channel. | |
Private Attributes | |
std::map< std::string, Engine * > | bundleEngineMap |
Friends | |
class | AcceleratorConnection |
Since engines can support multiple channels BUT not necessarily all of the channels in a bundle, a mapping from bundle channels to engines is needed.
PortMap BundleEngineMap::requestPorts | ( | const AppIDPath & | idPath, |
const BundleType * | bundleType | ||
) | const |
Request ports for all the channels in a bundle.
If the engine doesn't exist for a particular channel, skip said channel.
Definition at line 32 of file Engines.cpp.
References bundleEngineMap, and esi::BundleType::getChannels().
Referenced by esi::services::CustomService::getPort(), esi::services::FuncService::getPort(), and esi::services::CallService::getPort().
|
private |
Set a particlar engine for a particular channel.
Should only be called by AcceleratorConnection while registering engines.
Definition at line 46 of file Engines.cpp.
References bundleEngineMap.
|
friend |
|
private |
Definition at line 81 of file Engines.h.
Referenced by requestPorts(), and setEngine().