OpenDDS
Snapshot(2023/04/28-20:55)
|
#include <TransportCustomizedElement.h>
Public Member Functions | |
TransportCustomizedElement (TransportQueueElement *orig) | |
void | set_fragment (TransportQueueElement *orig) |
virtual GUID_t | publication_id () const |
Accessor for the publication id that sent the sample. More... | |
void | set_publication_id (const GUID_t &id) |
GUID_t | subscription_id () const |
Accessor for the subscription id, if sent the sample is sent to 1 sub. More... | |
void | set_subscription_id (const GUID_t &id) |
SequenceNumber | sequence () const |
void | set_sequence (const SequenceNumber &value) |
virtual ACE_Message_Block * | duplicate_msg () const |
A reference-incremented duplicate of the marshalled sample (sample header + sample data) More... | |
virtual const ACE_Message_Block * | msg () const |
The marshalled sample (sample header + sample data) More... | |
void | set_msg (Message_Block_Ptr m) |
virtual const ACE_Message_Block * | msg_payload () const |
The marshalled payload only (sample data) More... | |
virtual bool | owned_by_transport () |
Is the sample created by the transport? More... | |
virtual bool | is_fragment () const |
Is this QueueElement the result of fragmentation? More... | |
const TransportSendElement * | original_send_element () const |
virtual bool | is_last_fragment () const |
Is this QueueElement the last result of fragmentation? More... | |
![]() | |
virtual | ~TransportQueueElement () |
bool | data_dropped (bool dropped_by_transport=false) |
bool | data_delivered () |
void | increment_loan () |
virtual bool | is_control (GUID_t pub_id) const |
Is the element a "control" sample from the specified pub_id? More... | |
bool | released () const |
Is the listener get called ? More... | |
void | released (bool flag) |
virtual TqePair | fragment (size_t size) |
virtual bool | is_request_ack () const |
virtual bool | is_retained_replaced () const |
Protected Member Functions | |
virtual void | release_element (bool dropped_by_transport) |
Invoked when the counter reaches 0. More... | |
virtual bool | requires_exclusive_packet () const |
Does the sample require an exclusive transport packet? More... | |
void | set_requires_exclusive () |
virtual | ~TransportCustomizedElement () |
![]() | |
TransportQueueElement (unsigned long initial_count) | |
bool | was_dropped () const |
Static Protected Member Functions | |
static const TransportSendElement * | find_original_send_element (TransportQueueElement *orig) |
Private Attributes | |
TransportQueueElement * | orig_ |
const TransportSendElement * | original_send_element_ |
Message_Block_Ptr | msg_ |
GUID_t | publication_id_ |
GUID_t | subscription_id_ |
SequenceNumber | sequence_ |
bool | fragment_ |
bool | exclusive_ |
Additional Inherited Members | |
![]() | |
static ACE_Message_Block * | clone_mb (const ACE_Message_Block *msg, MessageBlockAllocator *mb_allocator, DataBlockAllocator *db_allocator) |
Definition at line 22 of file TransportCustomizedElement.h.
|
explicit |
Definition at line 17 of file TransportCustomizedElement.inl.
References ACE_INLINE, and DBG_ENTRY_LVL.
|
protectedvirtual |
|
virtual |
A reference-incremented duplicate of the marshalled sample (sample header + sample data)
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 44 of file TransportCustomizedElement.cpp.
References DBG_ENTRY_LVL, ACE_Message_Block::duplicate(), and msg_.
|
staticprotected |
Definition at line 72 of file TransportCustomizedElement.cpp.
References original_send_element().
|
inlinevirtual |
Is this QueueElement the result of fragmentation?
Reimplemented from OpenDDS::DCPS::TransportQueueElement.
Definition at line 48 of file TransportCustomizedElement.h.
|
virtual |
Is this QueueElement the last result of fragmentation?
Reimplemented from OpenDDS::DCPS::TransportQueueElement.
Definition at line 91 of file TransportCustomizedElement.cpp.
References OpenDDS::DCPS::TransportSendElement::is_last_fragment(), OPENDDS_END_VERSIONED_NAMESPACE_DECL, and original_send_element_.
Referenced by OpenDDS::DCPS::RtpsUdpDataLink::MultiSendBuffer::insert().
|
virtual |
The marshalled sample (sample header + sample data)
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 51 of file TransportCustomizedElement.cpp.
References DBG_ENTRY_LVL, OpenDDS::DCPS::unique_ptr< T, Deleter >::get(), and msg_.
Referenced by OpenDDS::DCPS::RtpsCustomizedElement::fragment(), and OpenDDS::DCPS::RtpsCustomizedElement::msg_payload().
|
virtual |
The marshalled payload only (sample data)
Implements OpenDDS::DCPS::TransportQueueElement.
Reimplemented in OpenDDS::DCPS::RtpsCustomizedElement.
Definition at line 65 of file TransportCustomizedElement.cpp.
References DBG_ENTRY_LVL, OpenDDS::DCPS::TransportQueueElement::msg_payload(), and orig_.
const TransportSendElement * OpenDDS::DCPS::TransportCustomizedElement::original_send_element | ( | ) | const |
Definition at line 85 of file TransportCustomizedElement.cpp.
References original_send_element_.
Referenced by OpenDDS::DCPS::RtpsUdpDataLink::RtpsWriter::customize_queue_element_helper(), OpenDDS::DCPS::RtpsUdpDataLink::customize_queue_element_non_reliable_i(), find_original_send_element(), and subscription_id().
|
inlinevirtual |
Is the sample created by the transport?
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 46 of file TransportCustomizedElement.h.
|
virtual |
Accessor for the publication id that sent the sample.
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 32 of file TransportCustomizedElement.inl.
References ACE_INLINE, DBG_ENTRY_LVL, and publication_id_.
|
protectedvirtual |
Invoked when the counter reaches 0.
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 28 of file TransportCustomizedElement.cpp.
References DBG_ENTRY_LVL, OpenDDS::DCPS::TransportQueueElement::decision_made(), and orig_.
|
inlineprotectedvirtual |
Does the sample require an exclusive transport packet?
Reimplemented from OpenDDS::DCPS::TransportQueueElement.
Definition at line 57 of file TransportCustomizedElement.h.
|
virtual |
Reimplemented from OpenDDS::DCPS::TransportQueueElement.
Definition at line 63 of file TransportCustomizedElement.inl.
References ACE_INLINE, orig_, OpenDDS::DCPS::TransportQueueElement::sequence(), sequence_, and OpenDDS::DCPS::SequenceNumber::SEQUENCENUMBER_UNKNOWN().
Referenced by OpenDDS::DCPS::RtpsUdpDataLink::RtpsWriter::customize_queue_element_helper().
ACE_INLINE void OpenDDS::DCPS::TransportCustomizedElement::set_fragment | ( | TransportQueueElement * | orig | ) |
Definition at line 79 of file TransportCustomizedElement.inl.
References fragment_, OPENDDS_END_VERSIONED_NAMESPACE_DECL, OpenDDS::DCPS::TransportQueueElement::publication_id(), OpenDDS::DCPS::TransportQueueElement::sequence(), set_publication_id(), set_sequence(), set_subscription_id(), and OpenDDS::DCPS::TransportQueueElement::subscription_id().
Referenced by OpenDDS::DCPS::RtpsCustomizedElement::fragment(), and OpenDDS::DCPS::TransportQueueElement::fragment().
void OpenDDS::DCPS::TransportCustomizedElement::set_msg | ( | Message_Block_Ptr | m | ) |
Definition at line 58 of file TransportCustomizedElement.cpp.
References DBG_ENTRY_LVL, msg_, OpenDDS::DCPS::unique_ptr< T, Deleter >::release(), and OpenDDS::DCPS::unique_ptr< T, Deleter >::reset().
Referenced by OpenDDS::DCPS::TransportQueueElement::fragment(), and OpenDDS::DCPS::RtpsCustomizedElement::RtpsCustomizedElement().
ACE_INLINE void OpenDDS::DCPS::TransportCustomizedElement::set_publication_id | ( | const GUID_t & | id | ) |
Definition at line 39 of file TransportCustomizedElement.inl.
References ACE_INLINE, and publication_id_.
Referenced by set_fragment().
|
inlineprotected |
Definition at line 58 of file TransportCustomizedElement.h.
Referenced by OpenDDS::DCPS::RtpsCustomizedElement::RtpsCustomizedElement().
ACE_INLINE void OpenDDS::DCPS::TransportCustomizedElement::set_sequence | ( | const SequenceNumber & | value | ) |
Definition at line 73 of file TransportCustomizedElement.inl.
References ACE_INLINE, sequence_, and value.
Referenced by set_fragment().
ACE_INLINE void OpenDDS::DCPS::TransportCustomizedElement::set_subscription_id | ( | const GUID_t & | id | ) |
Definition at line 56 of file TransportCustomizedElement.inl.
References ACE_INLINE, and subscription_id_.
Referenced by set_fragment().
|
virtual |
Accessor for the subscription id, if sent the sample is sent to 1 sub.
Reimplemented from OpenDDS::DCPS::TransportQueueElement.
Definition at line 45 of file TransportCustomizedElement.inl.
References ACE_INLINE, DBG_ENTRY_LVL, OpenDDS::DCPS::GUID_UNKNOWN, original_send_element(), OpenDDS::DCPS::TransportSendElement::subscription_id(), and subscription_id_.
|
private |
Definition at line 71 of file TransportCustomizedElement.h.
|
private |
Definition at line 71 of file TransportCustomizedElement.h.
Referenced by set_fragment().
|
private |
Definition at line 67 of file TransportCustomizedElement.h.
Referenced by duplicate_msg(), msg(), and set_msg().
|
private |
Definition at line 65 of file TransportCustomizedElement.h.
Referenced by msg_payload(), release_element(), and sequence().
|
private |
Definition at line 66 of file TransportCustomizedElement.h.
Referenced by is_last_fragment(), and original_send_element().
|
private |
Definition at line 68 of file TransportCustomizedElement.h.
Referenced by publication_id(), and set_publication_id().
|
private |
Definition at line 70 of file TransportCustomizedElement.h.
Referenced by sequence(), and set_sequence().
|
private |
Definition at line 69 of file TransportCustomizedElement.h.
Referenced by set_subscription_id(), and subscription_id().