Planeshift
|
The generic cache sets timers for each object added to the cache, then if the object is not removed by the expiration time, it calls the iCachedObject interface and deletes the object. More...
#include <cachemanager.h>
Public Member Functions | |
void | CancelEvent () |
psCacheExpireEvent (int delayticks, CachedObject *object) | |
virtual void | Trigger () |
Abstract event processing function. | |
Protected Attributes | |
CachedObject * | myObject |
bool | valid |
Set this to false if the trigger should not be fired. |
The generic cache sets timers for each object added to the cache, then if the object is not removed by the expiration time, it calls the iCachedObject interface and deletes the object.
Definition at line 871 of file cachemanager.h.
CacheManager::psCacheExpireEvent::psCacheExpireEvent | ( | int | delayticks, |
CachedObject * | object | ||
) |
void CacheManager::psCacheExpireEvent::CancelEvent | ( | ) | [inline] |
Definition at line 879 of file cachemanager.h.
virtual void CacheManager::psCacheExpireEvent::Trigger | ( | ) | [virtual] |
Abstract event processing function.
Implements psGameEvent.
CachedObject* CacheManager::psCacheExpireEvent::myObject [protected] |
Definition at line 875 of file cachemanager.h.
bool CacheManager::psCacheExpireEvent::valid [protected] |
Set this to false if the trigger should not be fired.
Reimplemented from psGameEvent.
Definition at line 874 of file cachemanager.h.