#include <qintcache.h>
Inheritance diagram for FX::QIntCache< type >:
Definition at line 39 of file qintcache.h.
Public Types | |
typedef dictbase::KeyType | KeyType |
typedef dictbase::ItemType | FundamentalDictType |
Public Member Functions | |
QIntCache (FXuint maxCost=100, FXuint size=13, bool autodel=false) | |
void | setAutoDelete (bool a) |
bool | dynamic () const throw () |
void | setDynamic (bool v) const throw () |
FXuint | maxCost () const throw () |
void | setMaxCost (FXuint newmax) |
FXuint | totalCost () const throw () |
void | cacheStats (float *hitrate, float *churn) const throw () |
void | statistics () const |
bool | insert (KeyTypeAsParam k, TypeAsParam d, FXint itemcost=1) |
bool | remove (KeyTypeAsParam k) |
TypeAsReturn | take (KeyTypeAsParam k) |
TypeAsReturn | find (KeyTypeAsParam k, bool tofront=true) const |
TypeAsReturn | operator[] (KeyTypeAsParam k) const |
Protected Types | |
typedef FundamentalDictType * | DictType |
typedef Generic::select< Generic::sameType< type, Generic::NullType >::value, DictType, type >::value | Type |
typedef Generic::TraitsBasic< Type > | TypeTraits |
typedef Generic::TraitsBasic< KeyType >::asROParam | KeyTypeAsParam |
typedef TypeTraits::asROParam | TypeAsParam |
typedef Generic::leastIndir< Type >::value * | TypeAsReturn |
typedef FXLRUCacheImpl::getPtr< Type, TypeAsParam, TypeTraits::isValue > | CacheItemBase |
Protected Member Functions | |
virtual void | purgeLFU () |
virtual void | deleteItem (DictType d) |
Protected Attributes | |
FXuint | topmax |
FXuint | maximum |
FXuint | cost |
bool | amDynamic |
std::list< CacheItem > | cache |
FX::FXLRUCache::stats_t | stats |