#include <EventSystem.h>

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< Event > | events |
| boost::mutex | events_mutex |
| bool | events_system_stop |
| const bool | isTransit |
| int | max_unreaded_events_number |
| boost::condition_variable | on_new_event |
| EventQueue * | parent |
| 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 |
Definition at line 142 of file EventSystem.h.
| typedef boost::shared_ptr<EventQueue> decision_making::EventQueue::Ptr |
Definition at line 264 of file EventSystem.h.
| decision_making::EventQueue::EventQueue | ( | EventQueue * | parent | ) | [inline] |
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.
| decision_making::EventQueue::EventQueue | ( | int | muen = max_unreaded_events_number_dif | ) | [inline] |
Definition at line 167 of file EventSystem.h.
| virtual decision_making::EventQueue::~EventQueue | ( | ) | [inline, virtual] |
Definition at line 171 of file EventSystem.h.
| 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.
| void decision_making::EventQueue::close | ( | ) | [inline] |
Definition at line 236 of file EventSystem.h.
| void decision_making::EventQueue::drop_all | ( | ) | [inline] |
Definition at line 231 of file EventSystem.h.
| bool decision_making::EventQueue::isTerminated | ( | ) | const [inline] |
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.
| void decision_making::EventQueue::spinOne | ( | ) | [inline] |
Definition at line 292 of file EventSystem.h.
| void decision_making::EventQueue::subscribe | ( | EventQueue * | sub | ) | [inline] |
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.
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.
bool decision_making::EventQueue::events_system_stop [protected] |
Definition at line 148 of file EventSystem.h.
const bool decision_making::EventQueue::isTransit [protected] |
Definition at line 144 of file EventSystem.h.
int decision_making::EventQueue::max_unreaded_events_number [protected] |
Definition at line 151 of file EventSystem.h.
const int decision_making::EventQueue::max_unreaded_events_number_dif = 1000 [static, protected] |
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.
EventQueue* decision_making::EventQueue::parent [protected] |
Definition at line 150 of file EventSystem.h.
std::deque<EventQueue*> decision_making::EventQueue::subs [protected] |
Definition at line 149 of file EventSystem.h.