#include <cxxtools/selector.h>

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

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 (std::size_t msecs=WaitInfinite)
 Wait for activity.
void wake ()
 Wakes the selctor from waiting.
- 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 onWait (std::size_t msecs=WaitInfinite)
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 &c)
 Copy constructor.
Connectableoperator= (const Connectable &rhs)
 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 ()
- Protected Member Functions inherited from cxxtools::NonCopyable
 NonCopyable ()

Additional Inherited Members

- Static Public Attributes inherited from cxxtools::SelectorBase
static const std::size_t WaitInfinite = static_cast<const std::size_t>(-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::onWait ( std::size_t  msecs = WaitInfinite)
protectedvirtual
void cxxtools::Selector::onWake ( )
protectedvirtual

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