OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <TransportReplacedElement.h>
Public Member Functions | |
TransportReplacedElement (TransportQueueElement *orig_elem, MessageBlockAllocator *mb_allocator=0, DataBlockAllocator *db_allocator=0) | |
virtual | ~TransportReplacedElement () |
virtual GUID_t | publication_id () const |
Accessor for the publisher id. More... | |
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 |
Accessor for the ACE_Message_Block. More... | |
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_retained_replaced () const |
![]() | |
virtual | ~TransportQueueElement () |
bool | data_dropped (bool dropped_by_transport=false) |
bool | data_delivered () |
void | increment_loan () |
virtual bool | requires_exclusive_packet () const |
Does the sample require an exclusive transport packet? More... | |
virtual GUID_t | subscription_id () const |
Accessor for the subscription id, if sent the sample is sent to 1 sub. More... | |
virtual SequenceNumber | sequence () const |
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_fragment () const |
Is this QueueElement the result of fragmentation? More... | |
virtual bool | is_last_fragment () const |
Is this QueueElement the last result of fragmentation? More... | |
virtual bool | is_request_ack () const |
Protected Member Functions | |
virtual void | release_element (bool dropped_by_transport) |
Invoked when the counter reaches 0. More... | |
![]() | |
TransportQueueElement (unsigned long initial_count) | |
bool | was_dropped () const |
Private Attributes | |
MessageBlockAllocator * | mb_allocator_ |
Cached allocator for DataSampleHeader message block. More... | |
DataBlockAllocator * | db_allocator_ |
Cached allocator for DataSampleHeader data block. More... | |
GUID_t | publisher_id_ |
The publication_id() from the original TransportQueueElement. More... | |
Message_Block_Ptr | msg_ |
A deep-copy of the msg() from the original TransportQueueElement. More... | |
Additional Inherited Members | |
![]() | |
static ACE_Message_Block * | clone_mb (const ACE_Message_Block *msg, MessageBlockAllocator *mb_allocator, DataBlockAllocator *db_allocator) |
Definition at line 21 of file TransportReplacedElement.h.
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE OpenDDS::DCPS::TransportReplacedElement::TransportReplacedElement | ( | TransportQueueElement * | orig_elem, |
MessageBlockAllocator * | mb_allocator = 0 , |
||
DataBlockAllocator * | db_allocator = 0 |
||
) |
Definition at line 14 of file TransportReplacedElement.inl.
References ACE_INLINE, DBG_ENTRY_LVL, OpenDDS::DCPS::TransportQueueElement::msg(), and OpenDDS::DCPS::TransportQueueElement::publication_id().
|
virtual |
|
virtual |
A reference-incremented duplicate of the marshalled sample (sample header + sample data)
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 41 of file TransportReplacedElement.inl.
References ACE_INLINE, DBG_ENTRY_LVL, ACE_Message_Block::duplicate(), and msg_.
|
virtual |
Reimplemented from OpenDDS::DCPS::TransportQueueElement.
Definition at line 72 of file TransportReplacedElement.inl.
References OPENDDS_END_VERSIONED_NAMESPACE_DECL.
|
virtual |
Accessor for the ACE_Message_Block.
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 49 of file TransportReplacedElement.inl.
References ACE_INLINE, DBG_ENTRY_LVL, OpenDDS::DCPS::unique_ptr< T, Deleter >::get(), and msg_.
|
virtual |
The marshalled payload only (sample data)
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 57 of file TransportReplacedElement.inl.
References ACE_INLINE, ACE_Message_Block::cont(), DBG_ENTRY_LVL, and msg_.
|
virtual |
Is the sample created by the transport?
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 65 of file TransportReplacedElement.inl.
References ACE_INLINE.
|
virtual |
Accessor for the publisher id.
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 33 of file TransportReplacedElement.inl.
References ACE_INLINE, DBG_ENTRY_LVL, and publisher_id_.
|
protectedvirtual |
Invoked when the counter reaches 0.
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 23 of file TransportReplacedElement.cpp.
References DBG_ENTRY_LVL, and OPENDDS_END_VERSIONED_NAMESPACE_DECL.
|
private |
Cached allocator for DataSampleHeader data block.
Definition at line 52 of file TransportReplacedElement.h.
|
private |
Cached allocator for DataSampleHeader message block.
Definition at line 50 of file TransportReplacedElement.h.
|
private |
A deep-copy of the msg() from the original TransportQueueElement.
Definition at line 58 of file TransportReplacedElement.h.
Referenced by duplicate_msg(), msg(), and msg_payload().
|
private |
The publication_id() from the original TransportQueueElement.
Definition at line 55 of file TransportReplacedElement.h.
Referenced by publication_id().