The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CacheRefreshTimer Class Reference

Create a timer which recurs every second, we inherit from Timer. More...

#include <cachetimer.h>

Inheritance diagram for CacheRefreshTimer:

Inheritance graph
[legend]
Collaboration diagram for CacheRefreshTimer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CacheRefreshTimer (InspIRCd *Instance, SpanningTreeUtilities *Util)
virtual void Tick (time_t TIME)
 Called when the timer ticks.

Private Attributes

InspIRCdInstance
SpanningTreeUtilitiesUtils

Detailed Description

Create a timer which recurs every second, we inherit from Timer.

Timer is only one-shot however, so at the end of each Tick() we simply insert another of ourselves into the pending queue :)

Definition at line 27 of file cachetimer.h.


Constructor & Destructor Documentation

CacheRefreshTimer::CacheRefreshTimer InspIRCd Instance,
SpanningTreeUtilities Util
 

Definition at line 30 of file cachetimer.cpp.


Member Function Documentation

void CacheRefreshTimer::Tick time_t  TIME  )  [virtual]
 

Called when the timer ticks.

You should override this method with some useful code to handle the tick event.

Implements Timer.

Definition at line 34 of file cachetimer.cpp.

References SpanningTreeUtilities::RefreshIPCache(), and Utils.


Member Data Documentation

InspIRCd* CacheRefreshTimer::Instance [private]
 

Definition at line 30 of file cachetimer.h.

SpanningTreeUtilities* CacheRefreshTimer::Utils [private]
 

Definition at line 31 of file cachetimer.h.

Referenced by Tick().


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