APM:Libraries
Public Member Functions | Protected Attributes | Friends | List of all members
Linux::Pollable Class Reference

#include <Poller.h>

Inheritance diagram for Linux::Pollable:
[legend]

Public Member Functions

 Pollable (int fd)
 
 Pollable ()
 
virtual ~Pollable ()
 
int get_fd () const
 
virtual void on_can_read ()
 
virtual void on_can_write ()
 
virtual void on_error ()
 
virtual void on_hang_up ()
 

Protected Attributes

int _fd = -1
 

Friends

class Poller
 

Detailed Description

Definition at line 28 of file Poller.h.

Constructor & Destructor Documentation

◆ Pollable() [1/2]

Linux::Pollable::Pollable ( int  fd)
inline

Definition at line 31 of file Poller.h.

◆ Pollable() [2/2]

Linux::Pollable::Pollable ( )
inline

Definition at line 32 of file Poller.h.

Here is the call graph for this function:

◆ ~Pollable()

Linux::Pollable::~Pollable ( )
virtual

Definition at line 148 of file Poller.cpp.

Referenced by Pollable().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ get_fd()

int Linux::Pollable::get_fd ( ) const
inline

Definition at line 36 of file Poller.h.

Referenced by Linux::Poller::register_pollable(), and Linux::Poller::unregister_pollable().

Here is the caller graph for this function:

◆ on_can_read()

virtual void Linux::Pollable::on_can_read ( )
inlinevirtual

Reimplemented in Linux::WakeupPollable, and Linux::TimerPollable.

Definition at line 39 of file Poller.h.

Referenced by Linux::Poller::poll().

Here is the caller graph for this function:

◆ on_can_write()

virtual void Linux::Pollable::on_can_write ( )
inlinevirtual

Definition at line 45 of file Poller.h.

Referenced by Linux::Poller::poll().

Here is the caller graph for this function:

◆ on_error()

virtual void Linux::Pollable::on_error ( )
inlinevirtual

Definition at line 51 of file Poller.h.

Referenced by Linux::Poller::poll().

Here is the caller graph for this function:

◆ on_hang_up()

virtual void Linux::Pollable::on_hang_up ( )
inlinevirtual

Definition at line 57 of file Poller.h.

Referenced by Linux::Poller::poll().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Poller

friend class Poller
friend

Definition at line 29 of file Poller.h.

Member Data Documentation

◆ _fd

int Linux::Pollable::_fd = -1
protected

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