Classes | |
struct | HasOwner |
Public Member Functions | |
EventLoop () | |
virtual | ~EventLoop () |
void | postEvent (boost::function< void()> event, boost::shared_ptr< EventOwner > owner=boost::shared_ptr< EventOwner >()) |
void | removeEventsFromOwner (boost::shared_ptr< EventOwner > owner) |
Protected Member Functions | |
virtual void | post (const Event &event)=0 |
Reimplement this to call handleEvent(event) from the thread in which the event loop is residing. | |
void | handleEvent (const Event &event) |
Definition at line 20 of file EventLoop.h.
Swift::EventLoop::EventLoop | ( | ) |
virtual Swift::EventLoop::~EventLoop | ( | ) | [virtual] |
void Swift::EventLoop::handleEvent | ( | const Event & | event | ) | [protected] |
Referenced by Swift::QtEventLoop::event().
virtual void Swift::EventLoop::post | ( | const Event & | event | ) | [protected, pure virtual] |
Reimplement this to call handleEvent(event) from the thread in which the event loop is residing.
Implemented in Swift::CocoaEventLoop, Swift::DummyEventLoop, Swift::QtEventLoop, Swift::SimpleEventLoop, and Swift::SingleThreadedEventLoop.
void Swift::EventLoop::postEvent | ( | boost::function< void()> | event, | |
boost::shared_ptr< EventOwner > | owner = boost::shared_ptr< EventOwner >() | |||
) |
Referenced by Swift::QtEventLoop::post().
void Swift::EventLoop::removeEventsFromOwner | ( | boost::shared_ptr< EventOwner > | owner | ) |