CIRCT  20.0.0git
Public Member Functions | Public Attributes | List of all members
esi::backends::cosim::CosimAccelerator::StubContainer Struct Reference

Hack around C++ not having a way to forward declare a nested class. More...

Collaboration diagram for esi::backends::cosim::CosimAccelerator::StubContainer:
Collaboration graph
[legend]

Public Member Functions

 StubContainer (std::unique_ptr< ChannelServer::Stub > stub)
 
bool getChannelDesc (const std::string &channelName, esi::cosim::ChannelDesc &desc)
 Get the type ID for a channel name. More...
 

Public Attributes

std::unique_ptr< ChannelServer::Stub > stub
 

Detailed Description

Hack around C++ not having a way to forward declare a nested class.

Definition at line 52 of file Cosim.cpp.

Constructor & Destructor Documentation

◆ StubContainer()

esi::backends::cosim::CosimAccelerator::StubContainer::StubContainer ( std::unique_ptr< ChannelServer::Stub >  stub)
inline

Definition at line 53 of file Cosim.cpp.

Member Function Documentation

◆ getChannelDesc()

bool StubContainer::getChannelDesc ( const std::string &  channelName,
esi::cosim::ChannelDesc &  desc 
)

Get the type ID for a channel name.

Get the channel description for a channel name.

Iterate through the list each time. Since this will only be called a small number of times on a small list, it's not worth doing anything fancy.

Definition at line 337 of file Cosim.cpp.

References checkStatus().

Referenced by esi::backends::cosim::CosimAccelerator::requestChannelsFor().

Member Data Documentation

◆ stub

std::unique_ptr<ChannelServer::Stub> esi::backends::cosim::CosimAccelerator::StubContainer::stub

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