template<class dictbase, class type>
virtual void FX::FXLRUCache< dictbase, type >::purgeLFU (  )  [inline, protected, virtual, inherited]

Called when totalCost() exceeds maxCost() to purge the least recently used items. The default implementation works on the basis of the least recently looked up via find(), however this is virtual so you can override it with a more intelligent mechanism

Definition at line 113 of file FXLRUCache.h.

00114     {
00115         while(cost>maximum)
00116         {
00117             CacheItem *ci=&cache.back();
00118             remove(ci->key);
00119             --stats.removed; ++stats.flushed;
00120         }
00121     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:39 2009 for TnFOX by doxygen v1.4.7