• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.10
    All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    dw::framework::ManagedPortOutput< T > Class Template Reference

    Detailed Description

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

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

    Definition at line 370 of file ManagedPort.hpp.

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

    Public Member Functions

    auto getBuffer ()
     
    template<typename T2 = T, typename std::enable_if_t< parameter_traits< T2 >::PacketTID==DWFRAMEWORK_PACKET_ID_DEFAULT, void > * = nullptr>
     ManagedPortOutput ()
     
    template<typename T2 = T, typename std::enable_if_t< parameter_traits< T2 >::PacketTID==DWFRAMEWORK_PACKET_ID_DEFAULT, void > * = nullptr>
     ManagedPortOutput (ConstructProperties props)
     
    template<typename T2 = T, typename std::enable_if_t< parameter_traits< T2 >::PacketTID !=DWFRAMEWORK_PACKET_ID_DEFAULT, void > * = nullptr>
     ManagedPortOutput (ConstructProperties props, SpecimenT &ref)
     
    template<typename T2 = T, typename std::enable_if_t< parameter_traits< T2 >::PacketTID !=DWFRAMEWORK_PACKET_ID_DEFAULT, void > * = nullptr>
     ManagedPortOutput (SpecimenT &ref)
     
    - Public Member Functions inherited from dw::framework::ManagedPortOutputBase
    void acquire ()
     
    void bindChannel (ChannelObject *channel) override
     
    ChannelMetadatagetMetadata ()
     
    const PropertiesgetProperties () 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)
     
    - Public Member Functions inherited from dw::framework::ManagedPortBase
    virtual void bindChannel (ChannelObject *channel)=0
     
    void bindLockstepSyncClient (dw::framework::lockstep::ILockstepSyncClient *syncClient)
     
    ChannelObjectgetChannel ()
     
    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)
     
    void setPeriod (uint32_t period)
     
    virtual ~ManagedPortBase ()=default
     
    - Public Member Functions inherited from dw::framework::PortBase
    virtual ~PortBase ()=default
     

    Additional Inherited Members

    - Protected Member Functions inherited from dw::framework::ManagedPortOutputBase
    GenericData getBufferGeneric ()
     
     ManagedPortOutputBase (ConstructProperties props, GenericDataReference &&ref)
     
    - Protected Attributes inherited from dw::framework::ManagedPortBase
    ChannelObjectm_channel
     
    uint32_t m_cycleCount
     
    dw::framework::lockstep::ILockstepSyncClientm_lockstepSyncClient
     
    uint32_t m_period
     

    Constructor & Destructor Documentation

    ◆ ManagedPortOutput() [1/4]

    template<typename T >
    template<typename T2 = T, typename std::enable_if_t< parameter_traits< T2 >::PacketTID !=DWFRAMEWORK_PACKET_ID_DEFAULT, void > * = nullptr>
    dw::framework::ManagedPortOutput< T >::ManagedPortOutput ( ConstructProperties  props,
    SpecimenT &  ref 
    )
    inline
    Parameters
    [in]propsthe properties of the output Port.
    [in]refthe reference data to be used by channel to allocate packets.

    Definition at line 385 of file ManagedPort.hpp.

    ◆ ManagedPortOutput() [2/4]

    template<typename T >
    template<typename T2 = T, typename std::enable_if_t< parameter_traits< T2 >::PacketTID !=DWFRAMEWORK_PACKET_ID_DEFAULT, void > * = nullptr>
    dw::framework::ManagedPortOutput< T >::ManagedPortOutput ( SpecimenT &  ref)
    inline
    Parameters
    [in]refthe reference data to be used by channel to allocate packets.

    Definition at line 395 of file ManagedPort.hpp.

    ◆ ManagedPortOutput() [3/4]

    template<typename T >
    template<typename T2 = T, typename std::enable_if_t< parameter_traits< T2 >::PacketTID==DWFRAMEWORK_PACKET_ID_DEFAULT, void > * = nullptr>
    dw::framework::ManagedPortOutput< T >::ManagedPortOutput ( ConstructProperties  props)
    inline
    Parameters
    [in]propsthe properties of the output Port.

    Definition at line 404 of file ManagedPort.hpp.

    ◆ ManagedPortOutput() [4/4]

    template<typename T >
    template<typename T2 = T, typename std::enable_if_t< parameter_traits< T2 >::PacketTID==DWFRAMEWORK_PACKET_ID_DEFAULT, void > * = nullptr>
    dw::framework::ManagedPortOutput< T >::ManagedPortOutput ( )
    inline

    Definition at line 410 of file ManagedPort.hpp.

    Member Function Documentation

    ◆ getBuffer()

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

    Get a pointer to the acquired buffer.

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

    Definition at line 420 of file ManagedPort.hpp.


    The documentation for this class was generated from the following file:
    人人超碰97caoporen国产