eventxx  1.0.1
eventxx::timer< F > Struct Template Reference

Timer event object. More...

Inheritance diagram for eventxx::timer< F >:

Public Member Functions

 timer (F &handler) throw ()
 Creates a new timer event. More...
 
- Public Member Functions inherited from eventxx::event< F >
 event (int fd, type ev, F &handler) throw ()
 Creates a new event. More...
 
- Public Member Functions inherited from eventxx::basic_event
bool pending (type ev) const throw ()
 Checks if there is an event pending. More...
 
time timeout () const throw ()
 Timeout of the event. More...
 
void priority (int priority) const throw (invalid_event, invalid_priority)
 Sets the event's priority. More...
 
int fd () const throw ()
 Event's file descriptor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from eventxx::basic_event
 basic_event () throw ()
 

Detailed Description

template<typename F>
struct eventxx::timer< F >

Timer event object.

This is just a special case of event that is fired only when a timeout is reached. It's just a shortcut to:

event(-1, 0, handler);
event(int fd, type ev, F &handler)
Creates a new event.
Definition: eventxx:310
Note
This event can't eventxx::PERSIST.
See also
timer< ccallback_type >

Constructor & Destructor Documentation

◆ timer()

template<typename F >
eventxx::timer< F >::timer ( F &  handler)
throw (
)
inline

Creates a new timer event.

Parameters
handlerCallback functor.

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