Compute Graph Framework SDK Reference  5.8
dw::framework::ChannelObject Class Referenceabstract

Detailed Description

Definition at line 54 of file Channel.hpp.

Classes

class  Consumer
 
class  PacketPool
 
class  Producer
 
class  SyncClient
 
class  SyncSignaler
 
class  SyncWaiter
 

Public Member Functions

virtual dwStatus connect (dwTime_t timeout)=0
 
virtual ConsumergetConsumer (GenericDataReference ref)=0
 
virtual const ChannelParamsgetParams () const =0
 
virtual ProducergetProducer (GenericDataReference ref)=0
 
virtual bool hasClients () const =0
 
virtual bool isConnected () const =0
 
virtual ~ChannelObject ()=default
 

Constructor & Destructor Documentation

◆ ~ChannelObject()

virtual dw::framework::ChannelObject::~ChannelObject ( )
virtualdefault

Member Function Documentation

◆ connect()

virtual dwStatus dw::framework::ChannelObject::connect ( dwTime_t  timeout)
pure virtual

Establish connection over the channel's protocol.

Parameters
[in]timeoutThe maximum time to attempt connection. timeout of zero implies to do most atomic connection attempt.
Returns
DW_TIME_OUT The time out was reached before connection could be established. DW_CALL_NOT_ALLOWED There are no client interfaces to connect. DW_SUCCESS

◆ getConsumer()

virtual Consumer * dw::framework::ChannelObject::getConsumer ( GenericDataReference  ref)
pure virtual

Register a consumer client.

Note
The client interface is owned by the ChannelObject and should not be used after the ChannelObject has been destroyed.
allocates new objects to back the requested interface.
Parameters
[in]refA reference for the data to be transfered over the channel
Returns
consumer interface
Exceptions
ifparameters disallow consumer role.

Referenced by dw::framework::PortInput< T >::bindChannel().

◆ getParams()

virtual const ChannelParams & dw::framework::ChannelObject::getParams ( ) const
pure virtual

◆ getProducer()

virtual Producer * dw::framework::ChannelObject::getProducer ( GenericDataReference  ref)
pure virtual

Register a producer client.

Note
The client interface is owned by the ChannelObject and should not be used after the ChannelObject has been destroyed.
This method shall only be called once per instance.
allocates new objects to back the requested interface.
Parameters
[in]refA reference for the data to be transfered over the channel
Returns
producer interface
Exceptions
ifparameters disallow producer role.

Referenced by dw::framework::PortOutput< T >::bindChannelWithReference().

◆ hasClients()

virtual bool dw::framework::ChannelObject::hasClients ( ) const
pure virtual

Query if the channel has any clients

Note
The channel will not have client interfaces unless requested via getProducer or getConsumer.

◆ isConnected()

virtual bool dw::framework::ChannelObject::isConnected ( ) const
pure virtual

Query if the channel and its client interfaces are connected to downstream/upstream channels and are ready for use


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