Public Member Functions | Protected Member Functions

Swift::SimpleEventLoop Class Reference

Inheritance diagram for Swift::SimpleEventLoop:
Collaboration diagram for Swift::SimpleEventLoop:

List of all members.

Public Member Functions

 SimpleEventLoop ()
 ~SimpleEventLoop ()
void run ()
void runUntilEvents ()
void runOnce ()
void stop ()
virtual void post (const Event &event)
 Reimplement this to call handleEvent(event) from the thread in which the event loop is residing.
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

void handleEvent (const Event &event)

Detailed Description

Definition at line 18 of file SimpleEventLoop.h.


Constructor & Destructor Documentation

Swift::SimpleEventLoop::SimpleEventLoop (  ) 
Swift::SimpleEventLoop::~SimpleEventLoop (  ) 

Member Function Documentation

void Swift::EventLoop::handleEvent ( const Event event  )  [protected, inherited]
virtual void Swift::SimpleEventLoop::post ( const Event event  )  [virtual]

Reimplement this to call handleEvent(event) from the thread in which the event loop is residing.

Implements Swift::EventLoop.

void Swift::EventLoop::postEvent ( boost::function< void()>  event,
boost::shared_ptr< EventOwner owner = boost::shared_ptr< EventOwner >() 
) [inherited]
void Swift::EventLoop::removeEventsFromOwner ( boost::shared_ptr< EventOwner owner  )  [inherited]
void Swift::SimpleEventLoop::run (  )  [inline]

Definition at line 23 of file SimpleEventLoop.h.

void Swift::SimpleEventLoop::runOnce (  ) 
void Swift::SimpleEventLoop::runUntilEvents (  )  [inline]

Definition at line 27 of file SimpleEventLoop.h.

void Swift::SimpleEventLoop::stop (  )