#include <TransportRetainedElement.h>
Public Member Functions | |
TransportRetainedElement (const ACE_Message_Block *message, const RepoId &pubId, MessageBlockAllocator *mb_allocator_=0, DataBlockAllocator *db_allocator_=0) | |
Construct with message block chain and Id values. | |
TransportRetainedElement (const TransportRetainedElement &source) | |
Copy constructor. | |
virtual | ~TransportRetainedElement () |
TransportQueueElement methods | |
| |
Message_Block_Ptr | msg_ |
} | |
RepoId | publication_id_ |
Originating publication Id, if any. | |
MessageBlockAllocator * | mb_allocator_ |
Cached allocator for DataSampleHeader message block. | |
DataBlockAllocator * | db_allocator_ |
Cached allocator for DataSampleHeader data block. | |
virtual RepoId | publication_id () const |
} | |
virtual const ACE_Message_Block * | msg () const |
} | |
virtual const ACE_Message_Block * | msg_payload () const |
} | |
virtual bool | owned_by_transport () |
} | |
virtual void | release_element (bool dropped_by_transport) |
} |
Definition at line 23 of file TransportRetainedElement.h.
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE OpenDDS::DCPS::TransportRetainedElement::TransportRetainedElement | ( | const ACE_Message_Block * | message, | |
const RepoId & | pubId, | |||
MessageBlockAllocator * | mb_allocator_ = 0 , |
|||
DataBlockAllocator * | db_allocator_ = 0 | |||
) |
Construct with message block chain and Id values.
Definition at line 13 of file TransportRetainedElement.inl.
References OpenDDS::DCPS::TransportQueueElement::clone_mb(), db_allocator_, mb_allocator_, msg_, and OpenDDS::DCPS::unique_ptr< T, Deleter >::reset().
00018 : TransportQueueElement(1), 00019 publication_id_( pubId), 00020 mb_allocator_( mb_allocator), 00021 db_allocator_( db_allocator) 00022 { 00023 if (message != 0) { 00024 msg_.reset(TransportQueueElement::clone_mb(message, 00025 this->mb_allocator_, 00026 this->db_allocator_)); 00027 } 00028 }
ACE_INLINE OpenDDS::DCPS::TransportRetainedElement::TransportRetainedElement | ( | const TransportRetainedElement & | source | ) |
Copy constructor.
Definition at line 31 of file TransportRetainedElement.inl.
References DBG_ENTRY_LVL.
00033 : TransportQueueElement(1), 00034 msg_( ACE_Message_Block::duplicate( source.msg())), 00035 publication_id_( source.publication_id()), 00036 mb_allocator_( source.mb_allocator_), 00037 db_allocator_( source.db_allocator_) 00038 { 00039 DBG_ENTRY_LVL("TransportRetainedElement","TransportRetainedElement",6); 00040 }
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL OpenDDS::DCPS::TransportRetainedElement::~TransportRetainedElement | ( | ) | [virtual] |
Definition at line 17 of file TransportRetainedElement.cpp.
References DBG_ENTRY_LVL.
00018 { 00019 DBG_ENTRY_LVL("TransportRetainedElement","~TransportRetainedElement",6); 00020 }
const ACE_Message_Block * OpenDDS::DCPS::TransportRetainedElement::msg | ( | void | ) | const [virtual] |
}
Sample data, if any.
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 39 of file TransportRetainedElement.cpp.
References DBG_ENTRY_LVL, OpenDDS::DCPS::unique_ptr< T, Deleter >::get(), and msg_.
00040 { 00041 DBG_ENTRY_LVL("TransportRetainedElement","msg",6); 00042 return this->msg_.get(); 00043 }
const ACE_Message_Block * OpenDDS::DCPS::TransportRetainedElement::msg_payload | ( | ) | const [virtual] |
}
Sample data, if any.
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 46 of file TransportRetainedElement.cpp.
References DBG_ENTRY_LVL, and msg_.
00047 { 00048 DBG_ENTRY_LVL("TransportRetainedElement", "msg_payload", 6); 00049 return this->msg_->cont(); 00050 }
ACE_INLINE bool OpenDDS::DCPS::TransportRetainedElement::owned_by_transport | ( | ) | [virtual] |
}
Sample data, if any.
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 45 of file TransportRetainedElement.inl.
OpenDDS::DCPS::RepoId OpenDDS::DCPS::TransportRetainedElement::publication_id | ( | ) | const [virtual] |
}
Sample data, if any.
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 32 of file TransportRetainedElement.cpp.
References DBG_ENTRY_LVL, and publication_id_.
00033 { 00034 DBG_ENTRY_LVL("TransportRetainedElement","publication_id",6); 00035 return this->publication_id_; 00036 }
void OpenDDS::DCPS::TransportRetainedElement::release_element | ( | bool | dropped_by_transport | ) | [protected, virtual] |
}
Sample data, if any.
Implements OpenDDS::DCPS::TransportQueueElement.
Definition at line 23 of file TransportRetainedElement.cpp.
References DBG_ENTRY_LVL.
00026 { 00027 DBG_ENTRY_LVL("TransportRetainedElement","release_element",6); 00028 delete this; 00029 }
Cached allocator for DataSampleHeader data block.
Definition at line 63 of file TransportRetainedElement.h.
Referenced by TransportRetainedElement().
Cached allocator for DataSampleHeader message block.
Definition at line 61 of file TransportRetainedElement.h.
Referenced by TransportRetainedElement().
}
Sample data, if any.
Definition at line 55 of file TransportRetainedElement.h.
Referenced by msg(), msg_payload(), and TransportRetainedElement().
Originating publication Id, if any.
Definition at line 58 of file TransportRetainedElement.h.
Referenced by publication_id().