Derived ManagedPortInput<T> provides type-specific interfaces for accessing buffers.
Definition at line 467 of file ManagedPort.hpp.
Classes | |
struct | iterable |
Public Types | |
using | UniquePacketPtr = std::unique_ptr< T, PacketDeleter > |
![]() | |
using | RingBuffer = dw::core::RingBuffer< GenericData > |
Public Member Functions | |
detail::vectorIterable< T > | getAllBufferIter () |
auto | getBuffer () -> T * |
auto | getBufferIfAvailableAndValid () -> T * |
iterable | getBufferIter () |
auto | getOptionalBuffer () -> T * |
ManagedPortInput (const dw::core::StringView &name) | |
ManagedPortInput (const dw::core::StringView &name, ConstructProperties props) | |
ManagedPortInput (const dw::core::StringView &name, ConstructProperties props, SpecimenT specimen) | |
UniquePacketPtr | takeOwnership () |
![]() | |
void | bindChannel (ChannelObject *channel) override |
dw::core::VectorFixed< GenericData > | getAllBuffers () |
const ChannelMetadata & | getMetadata () |
const Properties & | getProperties () const noexcept |
bool | isBound () const noexcept override |
bool | isBufferAvailable () const noexcept |
void | recv () |
void | release () |
void | reset () override |
void | sendAdvTimestamp () |
void | setCallbackAfterRecv (dw::core::Function< dwStatus()> callback) |
![]() | |
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 |
![]() | |
virtual | ~PortBase ()=default |
Additional Inherited Members | |
![]() | |
GenericData | getBufferGeneric () const |
ManagedPortInputBase (const dw::core::StringView &name, ConstructProperties props, GenericDataReference &&ref) | |
GenericData | popBufferGeneric () |
void | releaseToChannel (void *data) |
![]() | |
FI_DECLARE_INSTANCE_SET_HANDLE (m_fiHandle) | |
![]() | |
RingBuffer | m_buffers |
GenericData | m_stashedFuturePacket |
bool | m_stashValid |
![]() | |
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 |
using dw::framework::ManagedPortInput< T >::UniquePacketPtr = std::unique_ptr<T, PacketDeleter> |
Definition at line 560 of file ManagedPort.hpp.
|
inline |
Definition at line 485 of file ManagedPort.hpp.
|
inline |
Definition at line 490 of file ManagedPort.hpp.
|
inline |
Definition at line 495 of file ManagedPort.hpp.
|
inline |
iterable for all the buffers in the output channel pool.
Definition at line 503 of file ManagedPort.hpp.
|
inline |
Get a pointer to the first received buffer.
when | the buffer cannot be cast to T. |
Definition at line 523 of file ManagedPort.hpp.
|
inline |
For bind value if it is valid Get a pointer to the first received buffer if the buffer is valid or validity is not set. Otherwise return nullptr.
Definition at line 533 of file ManagedPort.hpp.
References dw::framework::getValidityStatus().
|
inline |
Get iterator over received buffers
Definition at line 513 of file ManagedPort.hpp.
|
inline |
For bind optional and buffer optional case Get a pointer to the first received buffer if the buffer available. Otherwise return nullptr.
when | the buffer cannot be cast to T. |
Definition at line 555 of file ManagedPort.hpp.
|
inline |
Definition at line 562 of file ManagedPort.hpp.
References dw::framework::GenericData::getPointer().