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

Detailed Description

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

PortInput mimics an Output Block. It wrapps over a Consumer Channel. Provides services like

  • binding(allocating channel resources, out of current scope),
  • waiting for next event
  • receiving packet

Definition at line 274 of file Port.hpp.

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

Public Types

using ApiDataTypeT = T
 
using BaseSyncHelper = SyncPortHelperInput< T >
 
using SpecimenT = typename parameter_traits< T >::SpecimenT
 

Public Member Functions

dwStatus bindChannel (ChannelObject *channel) override
 
ChannelObject::SyncSignalergetSyncSignaler ()
 
ChannelObject::SyncWaitergetSyncWaiter ()
 
void getWaitFences (T *frame, dw::core::span< NvSciSyncFence > fences)
 
bool isBound () override
 
 PortInput ()
 
 PortInput (OnSetSyncAttrs waiterAttrs, OnSetSyncAttrs signalerAttrs={})
 
 PortInput (SpecimenT &&ref)
 
 PortInput (SpecimenT const &ref)
 
 PortInput (SpecimenT const &ref, OnSetSyncAttrs waiterAttrs, OnSetSyncAttrs signalerAttrs={})
 
virtual std::shared_ptr< T > recv ()
 
void setOnDataReady (void *opaque, ChannelObject::PacketPool::OnDataReady onDataReady)
 
void setSignalFences (T *frame, dw::core::span< NvSciSyncFence > fences)
 
dwStatus wait (dwTime_t timeout)
 
 ~PortInput () override=default
 
- Public Member Functions inherited from dw::framework::SyncPortHelperInput< T >
 SyncPortHelperInput ()
 
- Public Member Functions inherited from dw::framework::SyncPortHelper
bool isDataSynced ()
 
virtual void parseDataSynced (const ChannelParams &params)
 
void setSyncCount (uint32_t index)
 
dwStatus setSyncRetriever (const CycleCountFetcher &func)
 
 SyncPortHelper ()
 
- Public Member Functions inherited from dw::framework::Port
virtual dwStatus bindChannel (ChannelObject *channel)=0
 
virtual dwStatus initialize ()
 
virtual bool isBound ()=0
 
- Public Member Functions inherited from dw::framework::PortBase
virtual ~PortBase ()=default
 

Static Public Attributes

static constexpr PortDirection DIRECTION = PortDirection::INPUT
 

Additional Inherited Members

- Protected Member Functions inherited from dw::framework::SyncPortHelperInput< T >
T * extractInternalPacket (GenericData genericData)
 
GenericData getBufferedPacket ()
 
bool isPacketBuffered ()
 
bool isValidPacketBuffered ()
 
- Protected Member Functions inherited from dw::framework::SyncPortHelper
ChannelPacketTypeID getNewPacketID (ChannelPacketTypeID packetTypeID)
 
void stampSyncCount (uint32_t &syncCountOut) const
 
- Protected Attributes inherited from dw::framework::SyncPortHelper
uint32_t m_dataOffset
 
bool m_dataSynced
 
uint32_t m_syncCount
 
CycleCountFetcher m_syncCountRetriever
 

Member Typedef Documentation

◆ ApiDataTypeT

template<typename T >
using dw::framework::PortInput< T >::ApiDataTypeT = T

Definition at line 280 of file Port.hpp.

◆ BaseSyncHelper

template<typename T >
using dw::framework::PortInput< T >::BaseSyncHelper = SyncPortHelperInput<T>

Definition at line 282 of file Port.hpp.

◆ SpecimenT

template<typename T >
using dw::framework::PortInput< T >::SpecimenT = typename parameter_traits<T>::SpecimenT

Definition at line 281 of file Port.hpp.

Constructor & Destructor Documentation

◆ PortInput() [1/5]

template<typename T >
dw::framework::PortInput< T >::PortInput ( SpecimenT const &  ref)
inlineexplicit

Definition at line 286 of file Port.hpp.

◆ PortInput() [2/5]

template<typename T >
dw::framework::PortInput< T >::PortInput ( SpecimenT &&  ref)
inlineexplicit

Definition at line 290 of file Port.hpp.

◆ PortInput() [3/5]

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

Definition at line 295 of file Port.hpp.

◆ PortInput() [4/5]

template<typename T >
dw::framework::PortInput< T >::PortInput ( OnSetSyncAttrs  waiterAttrs,
OnSetSyncAttrs  signalerAttrs = {} 
)
inlineexplicit

Definition at line 299 of file Port.hpp.

◆ PortInput() [5/5]

template<typename T >
dw::framework::PortInput< T >::PortInput ( SpecimenT const &  ref,
OnSetSyncAttrs  waiterAttrs,
OnSetSyncAttrs  signalerAttrs = {} 
)
inlineexplicit

Definition at line 306 of file Port.hpp.

◆ ~PortInput()

template<typename T >
dw::framework::PortInput< T >::~PortInput ( )
overridedefault

Member Function Documentation

◆ bindChannel()

◆ getSyncSignaler()

template<typename T >
ChannelObject::SyncSignaler & dw::framework::PortInput< T >::getSyncSignaler ( )
inline

◆ getSyncWaiter()

template<typename T >
ChannelObject::SyncWaiter & dw::framework::PortInput< T >::getSyncWaiter ( )
inline

◆ getWaitFences()

template<typename T >
void dw::framework::PortInput< T >::getWaitFences ( T *  frame,
dw::core::span< NvSciSyncFence >  fences 
)
inline

◆ isBound()

◆ recv()

◆ setOnDataReady()

template<typename T >
void dw::framework::PortInput< T >::setOnDataReady ( void *  opaque,
ChannelObject::PacketPool::OnDataReady  onDataReady 
)
inline

◆ setSignalFences()

template<typename T >
void dw::framework::PortInput< T >::setSignalFences ( T *  frame,
dw::core::span< NvSciSyncFence >  fences 
)
inline

◆ wait()

Member Data Documentation

◆ DIRECTION

template<typename T >
constexpr PortDirection dw::framework::PortInput< T >::DIRECTION = PortDirection::INPUT
staticconstexpr

Definition at line 279 of file Port.hpp.


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