RSC  0.17.1
rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterHandler Class Referenceabstract

A handler that is used to filter messages for a certain receiver. More...

#include <OrderedQueueDispatcherPool.h>

Inheritance diagram for rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterHandler:
Inheritance graph
Collaboration diagram for rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterHandler:
Collaboration graph

Public Member Functions

virtual ~FilterHandler ()
 
virtual bool filter (boost::shared_ptr< R > &receiver, const M &message)=0
 A function that filters a message for a receiver. More...
 

Detailed Description

template<class M, class R>
class rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterHandler

A handler that is used to filter messages for a certain receiver.

Author
jwienke
Note
do not use state in this class and make it reentrant

Definition at line 114 of file OrderedQueueDispatcherPool.h.

Constructor & Destructor Documentation

template<class M , class R >
virtual rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterHandler::~FilterHandler ( )
inlinevirtual

Definition at line 117 of file OrderedQueueDispatcherPool.h.

Member Function Documentation

template<class M , class R >
virtual bool rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterHandler::filter ( boost::shared_ptr< R > &  receiver,
const M &  message 
)
pure virtual

A function that filters a message for a receiver.

Parameters
receiverreceiver to filter for
messagemessage to filter
Returns
If true is returned, the message is acceptable for the receiver, else it will not be delivered.

Implemented in rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterFunctionAdapter, and rsc::threading::OrderedQueueDispatcherPool< M, R >::TrueFilter.


The documentation for this class was generated from the following file: