Compute Graph Framework SDK Reference  5.8
dw::framework::ManagedPortInput< T > Class Template Reference

Detailed Description

template<typename T>
class dw::framework::ManagedPortInput< T >

Derived ManagedPortInput<T> provides type-specific interfaces for accessing buffers.

Definition at line 371 of file ManagedPort.hpp.

Inheritance diagram for dw::framework::ManagedPortInput< T >:
Collaboration diagram for dw::framework::ManagedPortInput< T >:

Public Types

using UniquePacketPtr = std::unique_ptr< T, PacketDeleter >
 
- Public Types inherited from dw::framework::ManagedPortInputBase
using RingBuffer = dw::core::RingBuffer< GenericData >
 

Public Member Functions

auto getBuffer ()
 
auto getBufferIter ()
 
auto getOptionalBuffer ()
 
 ManagedPortInput ()
 
 ManagedPortInput (ConstructProperties props)
 
auto takeOwnership ()
 
- Public Member Functions inherited from dw::framework::ManagedPortInputBase
void bindChannel (ChannelObject *channel) override
 
const PropertiesgetProperties () const noexcept
 
bool isBound () const noexcept override
 
bool isBufferAvailable () const noexcept
 
void recv ()
 
void release ()
 
void reset () override
 
- Public Member Functions inherited from dw::framework::ManagedPortBase
virtual void bindChannel (ChannelObject *channel)=0
 
virtual bool isBound () const noexcept=0
 
 ManagedPortBase ()
 
 ManagedPortBase (const ManagedPortBase &other)=delete
 
 ManagedPortBase (ManagedPortBase &&other)=delete
 
ManagedPortBaseoperator= (const ManagedPortBase &other)=delete
 
ManagedPortBaseoperator= (ManagedPortBase &&other)=delete
 
virtual void reset ()
 
void setCycleCount (uint32_t cycleCount)
 
virtual ~ManagedPortBase ()=default
 
- Public Member Functions inherited from dw::framework::PortBase
virtual ~PortBase ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from dw::framework::ManagedPortInputBase
GenericData getBufferGeneric () const
 
 ManagedPortInputBase (ConstructProperties props, GenericDataReference &&ref)
 
GenericData popBufferGeneric ()
 
void releaseToChannel (void *data)
 
- Protected Attributes inherited from dw::framework::ManagedPortInputBase
RingBuffer m_buffers
 
GenericData m_stashedFuturePacket
 
bool m_stashValid
 
- Protected Attributes inherited from dw::framework::ManagedPortBase
uint32_t m_cycleCount
 

Member Typedef Documentation

◆ UniquePacketPtr

template<typename T >
using dw::framework::ManagedPortInput< T >::UniquePacketPtr = std::unique_ptr<T, PacketDeleter>

Definition at line 425 of file ManagedPort.hpp.

Constructor & Destructor Documentation

◆ ManagedPortInput() [1/2]

template<typename T >
dw::framework::ManagedPortInput< T >::ManagedPortInput ( ConstructProperties  props)
inline
Parameters
[in]propsthe properties of the input Port.

Definition at line 384 of file ManagedPort.hpp.

◆ ManagedPortInput() [2/2]

template<typename T >
dw::framework::ManagedPortInput< T >::ManagedPortInput ( )
inline

Definition at line 389 of file ManagedPort.hpp.

Member Function Documentation

◆ getBuffer()

template<typename T >
auto dw::framework::ManagedPortInput< T >::getBuffer ( )
inline

Get a pointer to the first received buffer.

Note
returned pointer is never nullptr
Exceptions
whenthe buffer cannot be cast to T.

Definition at line 409 of file ManagedPort.hpp.

◆ getBufferIter()

template<typename T >
auto dw::framework::ManagedPortInput< T >::getBufferIter ( )
inline

Get iterator over received buffers

Note
returned pointers are never nullptr
iterator access throws if buffer cannot be cast to T.

Definition at line 399 of file ManagedPort.hpp.

◆ getOptionalBuffer()

template<typename T >
auto dw::framework::ManagedPortInput< T >::getOptionalBuffer ( )
inline

For bind optional and buffer optional case Get a pointer to the first received buffer if the buffer available. Otherwise return nullptr.

Exceptions
whenthe buffer cannot be cast to T.

Definition at line 420 of file ManagedPort.hpp.

◆ takeOwnership()

template<typename T >
auto dw::framework::ManagedPortInput< T >::takeOwnership ( )
inline

Definition at line 427 of file ManagedPort.hpp.

References dw::framework::GenericData::getPointer().


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