|
OpenDDS
Snapshot(2023/04/28-20:55)
|
#include <CopyChainVisitor.h>


Public Member Functions | |
| CopyChainVisitor (BasicQueue< TransportQueueElement > &target, MessageBlockAllocator *mb_allocator, DataBlockAllocator *db_allocator, bool duplicate=false) | |
| virtual | ~CopyChainVisitor () |
| virtual int | visit_element (TransportQueueElement *element) |
| int | status () const |
| Access the status. More... | |
Public Member Functions inherited from OpenDDS::DCPS::BasicQueueVisitor< TransportQueueElement > | |
| BasicQueueVisitor () | |
| virtual | ~BasicQueueVisitor () |
| virtual int | visit_element_remove (TransportQueueElement *element, int &remove) |
| virtual int | visit_element_ref (TransportQueueElement *&element) |
Private Attributes | |
| BasicQueue< TransportQueueElement > & | target_ |
| Target queue to fill with copied elements. More... | |
| MessageBlockAllocator * | mb_allocator_ |
| Allocator to create copied elements. More... | |
| DataBlockAllocator * | db_allocator_ |
| int | status_ |
| Status of visitation. More... | |
| bool | duplicate_ |
Definition at line 26 of file CopyChainVisitor.h.
| ACE_INLINE OpenDDS::DCPS::CopyChainVisitor::CopyChainVisitor | ( | BasicQueue< TransportQueueElement > & | target, |
| MessageBlockAllocator * | mb_allocator, | ||
| DataBlockAllocator * | db_allocator, | ||
| bool | duplicate = false |
||
| ) |
Definition at line 11 of file CopyChainVisitor.inl.
References ACE_INLINE, and DBG_ENTRY_LVL.
|
virtual |
| ACE_INLINE int OpenDDS::DCPS::CopyChainVisitor::status | ( | void | ) | const |
Access the status.
Definition at line 27 of file CopyChainVisitor.inl.
References status_.
|
virtual |
This is the visit_element() method that will be called when the visitation method used is BasicQueue<T>::accept_visitor().
Return 0 if visiting should stop, return 1 to continue visiting.
Reimplemented from OpenDDS::DCPS::BasicQueueVisitor< TransportQueueElement >.
Definition at line 22 of file CopyChainVisitor.cpp.
References db_allocator_, DBG_ENTRY_LVL, duplicate_, OpenDDS::DCPS::TransportQueueElement::duplicate_msg(), mb_allocator_, OpenDDS::DCPS::TransportQueueElement::msg(), OpenDDS::DCPS::TransportQueueElement::publication_id(), OpenDDS::DCPS::BasicQueue< T >::put(), and target_.
|
private |
Definition at line 49 of file CopyChainVisitor.h.
Referenced by visit_element().
|
private |
Definition at line 53 of file CopyChainVisitor.h.
Referenced by visit_element().
|
private |
Allocator to create copied elements.
Definition at line 48 of file CopyChainVisitor.h.
Referenced by visit_element().
|
private |
|
private |
Target queue to fill with copied elements.
Definition at line 45 of file CopyChainVisitor.h.
Referenced by visit_element().
1.8.13