Base class encapsulates ownership of buffers and interactions with channel in type-agnostic way.
Definition at line 137 of file ManagedPort.hpp.


Classes | |
| struct | BoundProperties |
| struct | ConstructProperties |
| struct | Properties |
Public Member Functions | |
| void | acquire () |
| void | bindChannel (ChannelObject *channel) override |
| dw::core::VectorFixed< GenericData > | getAllBuffers () |
| ChannelMetadata & | getMetadata () |
| const Properties & | getProperties () const noexcept |
| bool | isBound () const noexcept override |
| bool | isBufferAvailable () const noexcept |
| void | reset () override |
| void | send () |
| void | sendAdvTimestamp () |
| void | setCallbackBeforeSend (dw::core::Function< dwStatus()> callback) |
| void | setNodeName (const dw::core::StringView &nodeName) noexcept override |
Public Member Functions inherited from dw::framework::ManagedPortBase | |
| virtual void | bindChannel (ChannelObject *channel)=0 |
| void | bindLockstepSyncClient (dw::framework::lockstep::ILockstepSyncClient *syncClient) |
| ChannelObject * | getChannel () |
| const dw::core::StringView & | getName () const |
| Get the name of the port. More... | |
| const dw::core::StringView & | getNodeName () const |
| Get the name of the node this port belongs to. More... | |
| virtual bool | isBound () const noexcept=0 |
| ManagedPortBase (const dw::core::StringView &name) | |
| ManagedPortBase (const ManagedPortBase &other)=delete | |
| ManagedPortBase (ManagedPortBase &&other)=delete | |
| ManagedPortBase & | operator= (const ManagedPortBase &other)=delete |
| ManagedPortBase & | operator= (ManagedPortBase &&other)=delete |
| virtual void | reset () |
| void | setCycleCount (uint32_t cycleCount) |
| virtual void | setNodeName (const dw::core::StringView &nodeName) noexcept |
| Set the name of the node this port belongs to. More... | |
| void | setPeriod (uint32_t period) |
| virtual | ~ManagedPortBase ()=default |
Public Member Functions inherited from dw::framework::PortBase | |
| virtual | ~PortBase ()=default |
Static Public Attributes | |
| static constexpr char | LOG_TAG [] {"ManagedPortOutputBase"} |
Protected Member Functions | |
| GenericData | getBufferGeneric () |
| ManagedPortOutputBase (const dw::core::StringView &name, ConstructProperties props, GenericDataReference &&ref, std::type_index typeIndex) | |
Protected Member Functions inherited from dw::framework::ManagedPortBase | |
| FI_DECLARE_INSTANCE_SET_HANDLE (m_fiHandle) | |
Additional Inherited Members | |
Protected Attributes inherited from dw::framework::ManagedPortBase | |
| ChannelObject * | m_channel |
| uint32_t | m_cycleCount |
| dw::framework::lockstep::ILockstepSyncClient * | m_lockstepSyncClient |
| dw::core::StringView | m_name |
| The unique name within set of ports with the same direction. More... | |
| dw::core::StringView | m_nodeName |
| The name of the node this port belongs to. More... | |
| uint32_t | m_period |
| struct dw::framework::ManagedPortOutputBase::BoundProperties |
| struct dw::framework::ManagedPortOutputBase::ConstructProperties |
| struct dw::framework::ManagedPortOutputBase::Properties |

| Class Members | ||
|---|---|---|
| BoundProperties | boundProperties | |
| ConstructProperties | constructProperties | |
|
explicitprotected |
| void dw::framework::ManagedPortOutputBase::acquire | ( | ) |
Acquire a buffer from the channel.
| if | channel returns unexpected error. |
|
overridevirtual |
Implements dw::framework::ManagedPortBase.
| dw::core::VectorFixed< GenericData > dw::framework::ManagedPortOutputBase::getAllBuffers | ( | ) |
|
protected |
| ChannelMetadata & dw::framework::ManagedPortOutputBase::getMetadata | ( | ) |
Get the metadata of the acquired buffer.
|
noexcept |
|
overridevirtualnoexcept |
Implements dw::framework::ManagedPortBase.
|
noexcept |
|
overridevirtual |
Resets the packet sequence counter
Reimplemented from dw::framework::ManagedPortBase.
| void dw::framework::ManagedPortOutputBase::send | ( | ) |
Send the buffer to downstream clients over the channel.
| if | channel returns unexpected errors. |
| void dw::framework::ManagedPortOutputBase::sendAdvTimestamp | ( | ) |
Send an advance packet if a lockstep sync client is bound.
| void dw::framework::ManagedPortOutputBase::setCallbackBeforeSend | ( | dw::core::Function< dwStatus()> | callback | ) |
Set callback function to be invoked before sending the data.
|
overridevirtualnoexcept |
Reimplemented from dw::framework::ManagedPortBase.
|
staticconstexpr |
Definition at line 142 of file ManagedPort.hpp.