CIRCT 20.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
esi::BundleEngineMap Class Reference

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>

Collaboration diagram for esi::BundleEngineMap:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Definition at line 68 of file Engines.h.

Member Function Documentation

◆ requestPorts()

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().

◆ setEngine()

void BundleEngineMap::setEngine ( const std::string &  channelName,
Engine engine 
)
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.

Friends And Related Symbol Documentation

◆ AcceleratorConnection

friend class AcceleratorConnection
friend

Definition at line 69 of file Engines.h.

Member Data Documentation

◆ bundleEngineMap

std::map<std::string, Engine *> esi::BundleEngineMap::bundleEngineMap
private

Definition at line 81 of file Engines.h.

Referenced by requestPorts(), and setEngine().


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