InspIRCd  2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
TimerManager Class Reference

#include <timer.h>

Public Member Functions

 TimerManager ()
 
void TickTimers (time_t TIME)
 
void AddTimer (Timer *T)
 
void DelTimer (Timer *T)
 

Static Public Member Functions

static bool TimerComparison (Timer *one, Timer *two)
 

Protected Attributes

std::vector< Timer * > Timers
 

Detailed Description

This class manages sets of Timers, and triggers them at their defined times. This will ensure timers are not missed, as well as removing timers that have expired and allowing the addition of new ones.

Constructor & Destructor Documentation

TimerManager::TimerManager ( )

Constructor

Member Function Documentation

void TimerManager::AddTimer ( Timer T)

Add an Timer

Parameters
Tan Timer derived class to add
void TimerManager::DelTimer ( Timer T)

Delete an Timer

Parameters
Tan Timer derived class to delete
void TimerManager::TickTimers ( time_t  TIME)

Tick all pending Timers

Parameters
TIMEthe current system time
bool TimerManager::TimerComparison ( Timer one,
Timer two 
)
static

Compares two timers

Member Data Documentation

std::vector<Timer *> TimerManager::Timers
protected

A list of all pending timers


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