#include </home/clem/local/src/opie/qmake/include/qcache.h>
Inheritance diagram for QCache< type >:


Public Member Functions | |
| QCache (const QCache< type > &c) | |
| QCache (int maxCost=100, int size=17, bool caseSensitive=TRUE) | |
| ~QCache () | |
| QCache< type > & | operator= (const QCache< type > &c) |
| int | maxCost () const |
| int | totalCost () const |
| void | setMaxCost (int m) |
| uint | count () const |
| uint | size () const |
| bool | isEmpty () const |
| void | clear () |
| bool | insert (const QString &k, const type *d, int c=1, int p=0) |
| bool | remove (const QString &k) |
| type * | take (const QString &k) |
| type * | find (const QString &k, bool ref=TRUE) const |
| type * | operator[] (const QString &k) const |
| void | statistics () const |
| template<> | |
| void | deleteItem (QPtrCollection::Item) |
Private Member Functions | |
| void | deleteItem (Item d) |
|
||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
Clears the cache. Reimplemented from QGCache. Definition at line 66 of file qcache.h. Referenced by QCache< QFontStruct >::~QCache(). |
|
|||||||||
|
Returns the number of items in the cache. Reimplemented from QGCache. |
|
||||||||||
|
|
|
||||||||||
|
Reimplemented in QFontCache. Definition at line 88 of file qcache.h. References QPtrCollection::del_item, and type. |
|
||||||||||||||||
|
Definition at line 73 of file qcache.h. Referenced by FlatDecoration::drawButton(), SkinCache::lookupAndTake(), and SkinCache::store(). |
|
||||||||||||||||||||||||
|
Definition at line 67 of file qcache.h. Referenced by derefEngine(), FlatDecoration::drawButton(), and SkinCache::store(). |
|
|||||||||
|
|
|
|||||||||
|
Returns the maximum cache cost. Reimplemented from QGCache. |
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
Sets the maximum cache cost to maxCost. Reimplemented from QGCache. Definition at line 62 of file qcache.h. Referenced by SkinCache::SkinCache(). |
|
|||||||||
|
Returns the size of the hash array. Reimplemented from QGCache. |
|
|||||||||
|
Outputs debug statistics. Reimplemented from QGCache. |
|
||||||||||
|
Definition at line 71 of file qcache.h. Referenced by SkinCache::lookupAndTake(), and newEngine(). |
|
|||||||||
|
Returns the total cache cost. Reimplemented from QGCache. |
1.4.2