#include <cxxtools/selector.h>

Inheritance diagram for cxxtools::Selector:
cxxtools::SelectorBase cxxtools::Connectable

Public Member Functions

 Selector ()
virtual ~Selector ()
SelectorImpl & impl ()
- Public Member Functions inherited from cxxtools::SelectorBase
virtual ~SelectorBase ()
 Destructor.
void add (Selectable &s)
 Adds an IOResult.
void remove (Selectable &s)
 Cancel an IOResult.
void add (Timer &timer)
 Adds a Timer.
void remove (Timer &timer)
 Removes a Timer.
bool wait (Milliseconds msecs=WaitInfinite)
 Wait for activity.
bool waitUntil (Timespan t)
 Wait for activity.
void wake ()
 Wakes the selctor from waiting.
Timespan waitTimer ()
 Wait for activity.
- Public Member Functions inherited from cxxtools::Connectable
 Connectable ()
 Default constructor.
virtual ~Connectable ()
 Closes all connections.
virtual void onConnectionOpen (const Connection &c)
 Registers a Connection with the Connectable.
virtual void onConnectionClose (const Connection &c)
 Unregisters a Connection from the Connectable.
size_t connectionCount () const

Protected Member Functions

void onAdd (Selectable &dev)
 A Selectable is added to this Selector.
void onRemove (Selectable &dev)
 A Selectable is removed from this Selector.
void onReinit (Selectable &)
 A Selectable is reinitialised and needs to be updated.
void onChanged (Selectable &)
 A Selectable in this Selector has changed.
bool onWaitUntil (Timespan timeout)
void onWake ()
- Protected Member Functions inherited from cxxtools::SelectorBase
 SelectorBase ()
 Default constructor.
void onAddTimer (Timer &timer)
void onRemoveTimer (Timer &timer)
void onTimerChanged (Timer &timer)
- Protected Member Functions inherited from cxxtools::Connectable
 Connectable (const Connectable &)
 Copy constructor.
Connectableoperator= (const Connectable &)
 Assignment operator.
const std::list< Connection > & connections () const
 Returns a list of all current connections.
std::list< Connection > & connections ()
 Returns a list of all current connections.
void clear ()

Additional Inherited Members

- Static Public Attributes inherited from cxxtools::SelectorBase
static const int WaitInfinite = -1
- Protected Attributes inherited from cxxtools::Connectable
std::list< Connection_connections
 A list of all current connections.

Constructor & Destructor Documentation

cxxtools::Selector::Selector ( )
virtual cxxtools::Selector::~Selector ( )
virtual

Member Function Documentation

SelectorImpl& cxxtools::Selector::impl ( )
void cxxtools::Selector::onAdd ( Selectable )
protectedvirtual

A Selectable is added to this Selector.

Do not throw exceptions.

Implements cxxtools::SelectorBase.

void cxxtools::Selector::onChanged ( Selectable s)
protectedvirtual

A Selectable in this Selector has changed.

Do not throw exceptions.

Implements cxxtools::SelectorBase.

void cxxtools::Selector::onReinit ( Selectable )
protectedvirtual

A Selectable is reinitialised and needs to be updated.

Do not throw exceptions.

Implements cxxtools::SelectorBase.

void cxxtools::Selector::onRemove ( Selectable )
protectedvirtual

A Selectable is removed from this Selector.

Do not throw exceptions.

Implements cxxtools::SelectorBase.

bool cxxtools::Selector::onWaitUntil ( Timespan  timeout)
protectedvirtual
void cxxtools::Selector::onWake ( )
protectedvirtual

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