Classes | Public Types | Public Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Private Attributes
decision_making::EventQueue Class Reference

#include <EventSystem.h>

Inheritance diagram for decision_making::EventQueue:
Inheritance graph
[legend]

List of all members.

Classes

class  Spinner

Public Types

typedef boost::shared_ptr
< EventQueue
Ptr

Public Member Functions

void async_spin (double rate=EQ_SPINNER_DIF_RATE, double start_delay=0.0)
virtual bool check_external_ok ()
void close ()
void drop_all ()
 EventQueue (EventQueue *parent)
 EventQueue (EventQueue *parent, bool isTransit)
 EventQueue (int muen=max_unreaded_events_number_dif)
bool isTerminated () const
virtual void raiseEvent (const Event &e)
virtual void riseEvent (const Event &e)
void spin (double rate=EQ_SPINNER_DIF_RATE)
void spinOne ()
void subscribe (EventQueue *sub)
Event tryGetEvent (bool &success)
virtual Event waitEvent ()
virtual ~EventQueue ()

Protected Attributes

std::deque< Eventevents
boost::mutex events_mutex
bool events_system_stop
const bool isTransit
int max_unreaded_events_number
boost::condition_variable on_new_event
EventQueueparent
std::deque< EventQueue * > subs

Static Protected Attributes

static const int max_unreaded_events_number_dif = 1000

Private Member Functions

void addEvent (Event e)
void remove (EventQueue *sub)

Private Attributes

boost::shared_ptr< Spinner_spinner

Detailed Description

Definition at line 142 of file EventSystem.h.


Member Typedef Documentation

typedef boost::shared_ptr<EventQueue> decision_making::EventQueue::Ptr

Definition at line 264 of file EventSystem.h.


Constructor & Destructor Documentation

Definition at line 155 of file EventSystem.h.

decision_making::EventQueue::EventQueue ( EventQueue parent,
bool  isTransit 
) [inline]

Definition at line 161 of file EventSystem.h.

Definition at line 167 of file EventSystem.h.

virtual decision_making::EventQueue::~EventQueue ( ) [inline, virtual]

Definition at line 171 of file EventSystem.h.


Member Function Documentation

void decision_making::EventQueue::addEvent ( Event  e) [inline, private]

Definition at line 192 of file EventSystem.h.

void decision_making::EventQueue::async_spin ( double  rate = EQ_SPINNER_DIF_RATE,
double  start_delay = 0.0 
) [inline]

Definition at line 294 of file EventSystem.h.

virtual bool decision_making::EventQueue::check_external_ok ( ) [inline, virtual]

Reimplemented in decision_making::RosEventQueue.

Definition at line 291 of file EventSystem.h.

Definition at line 236 of file EventSystem.h.

Definition at line 231 of file EventSystem.h.

Definition at line 260 of file EventSystem.h.

virtual void decision_making::EventQueue::raiseEvent ( const Event e) [inline, virtual]

Reimplemented in decision_making::RosEventQueue.

Definition at line 183 of file EventSystem.h.

void decision_making::EventQueue::remove ( EventQueue sub) [inline, private]

Definition at line 250 of file EventSystem.h.

virtual void decision_making::EventQueue::riseEvent ( const Event e) [inline, virtual]

Definition at line 189 of file EventSystem.h.

void decision_making::EventQueue::spin ( double  rate = EQ_SPINNER_DIF_RATE) [inline]

Definition at line 293 of file EventSystem.h.

Definition at line 292 of file EventSystem.h.

Definition at line 244 of file EventSystem.h.

Event decision_making::EventQueue::tryGetEvent ( bool &  success) [inline]

Definition at line 221 of file EventSystem.h.

virtual Event decision_making::EventQueue::waitEvent ( ) [inline, virtual]

Reimplemented in decision_making::RosEventQueue.

Definition at line 212 of file EventSystem.h.


Member Data Documentation

boost::shared_ptr<Spinner> decision_making::EventQueue::_spinner [private]

Definition at line 300 of file EventSystem.h.

std::deque<Event> decision_making::EventQueue::events [protected]

Definition at line 147 of file EventSystem.h.

boost::mutex decision_making::EventQueue::events_mutex [mutable, protected]

Definition at line 145 of file EventSystem.h.

Definition at line 148 of file EventSystem.h.

Definition at line 144 of file EventSystem.h.

Definition at line 151 of file EventSystem.h.

Definition at line 152 of file EventSystem.h.

boost::condition_variable decision_making::EventQueue::on_new_event [protected]

Definition at line 146 of file EventSystem.h.

Definition at line 150 of file EventSystem.h.

Definition at line 149 of file EventSystem.h.


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


decision_making
Author(s):
autogenerated on Wed Aug 26 2015 11:16:53