Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TimerMap Class Reference

#include <MNTimerEntry.h>

Collaboration diagram for TimerMap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TimerMap ()
 ~TimerMap ()
bool del (TimerCallBase *k)
bool insert (const timer_entry_t &i)
bool get (timer_entry_t &t)
bool peek_next_timeout (struct timeval &t)
void clear ()

Constructor & Destructor Documentation

TimerMap::TimerMap  ) 
 

TimerMap::~TimerMap  ) 
 


Member Function Documentation

void TimerMap::clear  ) 
 

bool TimerMap::del TimerCallBase k  ) 
 

Delete an entries from the timer list.

Returns:
True if the the deleted element was the first in the list. In this case, the caller must probably take an action. False if no element was deleted or if the element was not the first one.

bool TimerMap::get timer_entry_t t  ) 
 

Destructive get of the first entry in the timer list.

Returns:
True if an entry was actually copied, false if there was no entry to copy.

bool TimerMap::insert const timer_entry_t i  ) 
 

Insert a new timer.

Returns:
True if the new timer is at the front, which means that the calling application must probably take action. False if it is not at the front.

bool TimerMap::peek_next_timeout struct timeval &  t  ) 
 

Non-destructive lookup of the next timeout that is listed.

Returns:
True if a timeout was found, false if the list was empty.


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:36:21 2005 for Komssys by doxygen 1.3.8