OpenDDS::DCPS::BasicQueueVisitor< T > Class Template Reference

#include <BasicQueueVisitor_T.h>

List of all members.

Public Member Functions

 BasicQueueVisitor ()
virtual ~BasicQueueVisitor ()
virtual int visit_element (T *element)
virtual int visit_element_remove (T *element, int &remove)
virtual int visit_element_ref (T *&element)

Detailed Description

template<typename T>
class OpenDDS::DCPS::BasicQueueVisitor< T >

Definition at line 19 of file BasicQueueVisitor_T.h.


Constructor & Destructor Documentation

template<typename T>
OpenDDS::DCPS::BasicQueueVisitor< T >::BasicQueueVisitor (  )  [inline]

Definition at line 22 of file BasicQueueVisitor_T.h.

00022                       {
00023   }

template<typename T>
virtual OpenDDS::DCPS::BasicQueueVisitor< T >::~BasicQueueVisitor (  )  [inline, virtual]

Definition at line 25 of file BasicQueueVisitor_T.h.

00025                                {
00026   }


Member Function Documentation

template<typename T>
virtual int OpenDDS::DCPS::BasicQueueVisitor< T >::visit_element ( T *  element  )  [inline, 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 in OpenDDS::DCPS::BuildChainVisitor, and OpenDDS::DCPS::CopyChainVisitor.

Definition at line 32 of file BasicQueueVisitor_T.h.

Referenced by OpenDDS::DCPS::BasicQueue< TransportQueueElement >::accept_visitor().

00032                                         {
00033     ACE_UNUSED_ARG(element);
00034     return 0;
00035   }

Here is the caller graph for this function:

template<typename T>
virtual int OpenDDS::DCPS::BasicQueueVisitor< T >::visit_element_ref ( T *&  element  )  [inline, virtual]

This is the visit_element_ref() method that will be called when the visitation method used is BasicQueue<T>::accept_replace_visitor().

Return 0 if visiting should stop, return 1 to continue visiting.

Reimplemented in OpenDDS::DCPS::PacketRemoveVisitor.

Definition at line 59 of file BasicQueueVisitor_T.h.

Referenced by OpenDDS::DCPS::BasicQueue< TransportQueueElement >::accept_replace_visitor().

00059                                              {
00060     ACE_UNUSED_ARG(element);
00061     return 0;
00062   }

Here is the caller graph for this function:

template<typename T>
virtual int OpenDDS::DCPS::BasicQueueVisitor< T >::visit_element_remove ( T *  element,
int &  remove 
) [inline, virtual]

This is the visit_element_remove() method that will be called when the visitation method used is BasicQueue<T>::accept_remove_visitor().

Return 0 if visiting should stop, return 1 to continue visiting. The remove is an "inout" argument that is always passed-in with a false (0) value, indicating that the link should not be removed from the queue as a result of this visit. If the visit_remove() implementation decides that the link should be removed, then it must set the remove argument to true (1). By default, this method is implemented to just return 0 to stop the "remove visitation" immediately. It doesn't modify the value of the remove argument.

Reimplemented in OpenDDS::DCPS::QueueRemoveVisitor, OpenDDS::DCPS::RemoveAllVisitor, and OpenDDS::DCPS::ThreadPerConRemoveVisitor.

Definition at line 49 of file BasicQueueVisitor_T.h.

Referenced by OpenDDS::DCPS::BasicQueue< TransportQueueElement >::accept_remove_visitor().

00049                                                             {
00050     ACE_UNUSED_ARG(element);
00051     ACE_UNUSED_ARG(remove);
00052     return 0;
00053   }

Here is the caller graph for this function:


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

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1