Public Member Functions | Protected Member Functions

TAO::CSD::TP_Queue_Visitor Class Reference

Base class for vistors of the elements in the TP_Queue. More...

#include <CSD_TP_Queue_Visitor.h>

Inheritance diagram for TAO::CSD::TP_Queue_Visitor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~TP_Queue_Visitor ()
 Virtual Destructor.
virtual bool visit_request (TP_Request *request, bool &remove_flag)=0

Protected Member Functions

 TP_Queue_Visitor ()
 Default Constructor.

Detailed Description

Base class for vistors of the elements in the TP_Queue.

Provides a way to perform thread-safe iteration over the TP_Request objects contained within a TP_Queue object.

This also provides a means to encapsulate each distinct algorithm within a distinct subclass of TP_Queue_Visitor.

Definition at line 48 of file CSD_TP_Queue_Visitor.h.


Constructor & Destructor Documentation

TAO::CSD::TP_Queue_Visitor::~TP_Queue_Visitor (  )  [virtual]

Virtual Destructor.

Definition at line 15 of file CSD_TP_Queue_Visitor.cpp.

{
}

TAO::CSD::TP_Queue_Visitor::TP_Queue_Visitor (  )  [protected]

Default Constructor.

Definition at line 8 of file CSD_TP_Queue_Visitor.inl.

{
}


Member Function Documentation

virtual bool TAO::CSD::TP_Queue_Visitor::visit_request ( TP_Request request,
bool &  remove_flag 
) [pure virtual]

Returns true to continue visitation. Return false to stop visitation. Sets the remove_flag to true if the request should be removed from the queue as a result of the visit. Leaves the remove_flag alone otherwise.

Implemented in TAO::CSD::TP_Cancel_Visitor, and TAO::CSD::TP_Dispatchable_Visitor.


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