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 ( )


Member Function Documentation

void TimerManager::AddTimer ( Timer T)

Add an Timer

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

Delete an Timer

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

Tick all pending Timers

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

Compares two timers

Member Data Documentation

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

A list of all pending timers

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