OpenDDS::DCPS::QueueRemoveVisitor Class Reference

#include <QueueRemoveVisitor.h>

Inheritance diagram for OpenDDS::DCPS::QueueRemoveVisitor:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QueueRemoveVisitor (TransportQueueElement &sample)
 Construct with a queue element representing the sample to be removed.
virtual ~QueueRemoveVisitor ()
virtual int visit_element_remove (TransportQueueElement *element, int &remove)
int status () const
int removed_bytes () const

Private Attributes

TransportQueueElementsample_
 The sample that needs to be removed.
int status_
 Holds the status of our visit.
size_t removed_bytes_

Constructor & Destructor Documentation

ACE_INLINE OpenDDS::DCPS::QueueRemoveVisitor::QueueRemoveVisitor ( TransportQueueElement sample  ) 

Construct with a queue element representing the sample to be removed.

OpenDDS::DCPS::QueueRemoveVisitor::~QueueRemoveVisitor (  )  [virtual]


Member Function Documentation

ACE_INLINE int OpenDDS::DCPS::QueueRemoveVisitor::removed_bytes (  )  const

ACE_INLINE int OpenDDS::DCPS::QueueRemoveVisitor::status (  )  const

Accessor for the status. Called after this visitor object has been passed to BasicQueue<T>::accept_remove_visitor().

int OpenDDS::DCPS::QueueRemoveVisitor::visit_element_remove ( TransportQueueElement element,
int &  remove 
) [virtual]

The BasicQueue<T>::accept_remove_visitor() method will call this visit_element_remove() method for each element in the queue.


Member Data Documentation

size_t OpenDDS::DCPS::QueueRemoveVisitor::removed_bytes_ [private]

TransportQueueElement& OpenDDS::DCPS::QueueRemoveVisitor::sample_ [private]

The sample that needs to be removed.

int OpenDDS::DCPS::QueueRemoveVisitor::status_ [private]

Holds the status of our visit.


The documentation for this class was generated from the following files:
Generated on Wed Nov 16 15:29:02 2011 for OpenDDS by  doxygen 1.4.7