Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::event::TEventHandler< TEvent > Class Template Reference

#include <event_handler.hh>

Inheritance diagram for mpcl::event::TEventHandler< TEvent >:

mpcl::event::TThreadedEventHandler< TEvent > List of all members.

Public Methods

virtual ~TEventHandler (void)
 Destroys the instance.

virtual TEvent pop (void)
virtual void push (const TEvent &rktSOURCE_EVENT)
virtual bool isEmpty (void) const

Protected Types

typedef std::priority_queue<
TEvent > 
TPriorityQueue
 Event priotity queue type.


Protected Attributes

TPriorityQueue tPriorityQueue
 Event priority queue.


Detailed Description

template<typename TEvent>
class mpcl::event::TEventHandler< TEvent >

Base event handler for TStreamableDfa. The events are sortered by the operator '<' over class TEvent.
See also:
TStreamableDfa.

Definition at line 49 of file event_handler.hh.


Member Function Documentation

template<typename TEvent>
virtual bool mpcl::event::TEventHandler< TEvent >::isEmpty void    const [inline, virtual]
 

Returns true if there is no events queued.

Returns:
True if there is no events queued.

Reimplemented in mpcl::event::TThreadedEventHandler< TEvent >.

Definition at line 102 of file event_handler.hh.

References mpcl::event::TEventHandler< TEvent >::tPriorityQueue.

template<typename TEvent>
virtual TEvent mpcl::event::TEventHandler< TEvent >::pop void    [inline, virtual]
 

Extracts next event (and removes from the queue).

Returns:
Next event.

Reimplemented in mpcl::event::TThreadedEventHandler< TEvent >.

Definition at line 74 of file event_handler.hh.

References mpcl::event::TEventHandler< TEvent >::tPriorityQueue.

template<typename TEvent>
virtual void mpcl::event::TEventHandler< TEvent >::push const TEvent &    rktSOURCE_EVENT [inline, virtual]
 

Pushes an event into the queue.

Parameters:
rktSOURCE_EVENT  Pushed event.

Reimplemented in mpcl::event::TThreadedEventHandler< TEvent >.

Definition at line 86 of file event_handler.hh.

References mpcl::event::TEventHandler< TEvent >::tPriorityQueue.


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:25 2003 for MPCL by doxygen1.2.18