TransportRetainedElement.cpp

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
00009 #include "TransportRetainedElement.h"
00010 
00011 #if !defined (__ACE_INLINE__)
00012 #include "TransportRetainedElement.inl"
00013 #endif /* __ACE_INLINE__ */
00014 
00015 OpenDDS::DCPS::TransportRetainedElement::~TransportRetainedElement()
00016 {
00017   DBG_ENTRY_LVL("TransportRetainedElement","~TransportRetainedElement",6);
00018 }
00019 
00020 void
00021 OpenDDS::DCPS::TransportRetainedElement::release_element(
00022   bool /* dropped_by_transport */
00023 )
00024 {
00025   DBG_ENTRY_LVL("TransportRetainedElement","release_element",6);
00026 
00027   if (this->msg_ != 0) {
00028     this->msg_->release();
00029     this->msg_ = 0;
00030   }
00031 
00032   if (this->allocator_) {
00033     this->allocator_->free(this);
00034   }
00035 }
00036 
00037 OpenDDS::DCPS::RepoId
00038 OpenDDS::DCPS::TransportRetainedElement::publication_id() const
00039 {
00040   DBG_ENTRY_LVL("TransportRetainedElement","publication_id",6);
00041   return this->publication_id_;
00042 }
00043 
00044 const ACE_Message_Block*
00045 OpenDDS::DCPS::TransportRetainedElement::msg() const
00046 {
00047   DBG_ENTRY_LVL("TransportRetainedElement","msg",6);
00048   return this->msg_;
00049 }
00050 
00051 const ACE_Message_Block*
00052 OpenDDS::DCPS::TransportRetainedElement::msg_payload() const
00053 {
00054   DBG_ENTRY_LVL("TransportRetainedElement", "msg_payload", 6);
00055   return this->msg_->cont();
00056 }

Generated on Fri Feb 12 20:05:28 2016 for OpenDDS by  doxygen 1.4.7