OpenDDS::DCPS::TransportRetainedElement Class Reference

#include <TransportRetainedElement.h>

Inheritance diagram for OpenDDS::DCPS::TransportRetainedElement:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::TransportRetainedElement:
Collaboration graph
[legend]

List of all members.

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.
MessageBlockAllocatormb_allocator_
 Cached allocator for DataSampleHeader message block.
DataBlockAllocatordb_allocator_
 Cached allocator for DataSampleHeader data block.
virtual RepoId publication_id () const
 }
virtual const ACE_Message_Blockmsg () const
 }
virtual const ACE_Message_Blockmsg_payload () const
 }
virtual bool owned_by_transport ()
 }
virtual void release_element (bool dropped_by_transport)
 }

Detailed Description

Definition at line 23 of file TransportRetainedElement.h.


Constructor & Destructor Documentation

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 }

Here is the call graph for this function:

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 }


Member Function Documentation

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 }

Here is the call graph for this function:

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.

00046 {
00047   return true;
00048 }

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 }


Member Data Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1