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


Public Member Functions | |
| ThreadPerConRemoveVisitor (const ACE_Message_Block *sample) | |
| virtual | ~ThreadPerConRemoveVisitor () |
| virtual int | visit_element_remove (SendRequest *element, int &remove) |
| RemoveResult | status () const |
| True if the visitor found and removed the sample. More... | |
Public Member Functions inherited from OpenDDS::DCPS::BasicQueueVisitor< SendRequest > | |
| BasicQueueVisitor () | |
| virtual | ~BasicQueueVisitor () |
| virtual int | visit_element (SendRequest *element) |
| virtual int | visit_element_ref (SendRequest *&element) |
Private Attributes | |
| const ACE_Message_Block * | sample_ |
| The sample that needs to be removed. More... | |
| RemoveResult | status_ |
| Holds the status of our visit. More... | |
Definition at line 22 of file ThreadPerConRemoveVisitor.h.
|
explicit |
In order to construct a QueueRemoveVisitor, it must be provided with the DataSampleElement* (used as an identifier) that should be removed from the BasicQueue<T> (the one this visitor will visit when it is passed-in to a BasicQueue<T>::accept_remove_visitor() invocation).
Definition at line 11 of file ThreadPerConRemoveVisitor.inl.
References ACE_INLINE, and DBG_ENTRY.
|
virtual |
| ACE_INLINE OpenDDS::DCPS::RemoveResult OpenDDS::DCPS::ThreadPerConRemoveVisitor::status | ( | void | ) | const |
True if the visitor found and removed the sample.
Definition at line 20 of file ThreadPerConRemoveVisitor.inl.
References DBG_ENTRY, and status_.
Referenced by OpenDDS::DCPS::ThreadPerConnectionSendTask::remove_sample().
|
virtual |
The BasicQueue<T>::accept_remove_visitor() method will call this visit_element_remove() method for each element in the queue.
Reimplemented from OpenDDS::DCPS::BasicQueueVisitor< SendRequest >.
Definition at line 28 of file ThreadPerConRemoveVisitor.cpp.
References OpenDDS::DCPS::TransportQueueElement::data_dropped(), DBG_ENTRY, OpenDDS::DCPS::SendRequest::element_, OpenDDS::DCPS::SendRequest::op_, OPENDDS_END_VERSIONED_NAMESPACE_DECL, ACE_Message_Block::rd_ptr(), OpenDDS::DCPS::REMOVE_FOUND, OpenDDS::DCPS::REMOVE_RELEASED, sample_, OpenDDS::DCPS::SEND, and status_.
|
private |
The sample that needs to be removed.
Definition at line 46 of file ThreadPerConRemoveVisitor.h.
Referenced by visit_element_remove().
|
private |
Holds the status of our visit.
Definition at line 49 of file ThreadPerConRemoveVisitor.h.
Referenced by status(), and visit_element_remove().
1.8.13