RSC  0.16.0
rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterFunctionAdapter Class Reference

An adapter for function-based filter to the object-oriented interface. More...

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

Public Member Functions

 FilterFunctionAdapter (filterFunction function)
 
bool filter (boost::shared_ptr< R > &receiver, const M &message)
 A function that filters a message for a receiver. More...
 
- Public Member Functions inherited from rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterHandler
virtual ~FilterHandler ()
 

Private Attributes

filterFunction function
 

Detailed Description

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

An adapter for function-based filter to the object-oriented interface.

Author
jwienke

Definition at line 154 of file OrderedQueueDispatcherPool.h.

Constructor & Destructor Documentation

template<class M , class R >
rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterFunctionAdapter::FilterFunctionAdapter ( filterFunction  function)
inlineexplicit

Definition at line 157 of file OrderedQueueDispatcherPool.h.

Member Function Documentation

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

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.

Implements rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterHandler.

Definition at line 161 of file OrderedQueueDispatcherPool.h.

Member Data Documentation

template<class M , class R >
filterFunction rsc::threading::OrderedQueueDispatcherPool< M, R >::FilterFunctionAdapter::function
private

Definition at line 166 of file OrderedQueueDispatcherPool.h.


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