Qt 4.8
|
#include <qcache.h>
Classes | |
struct | Node |
Public Functions | |
void | clear () |
bool | contains (const Key &key) const |
int | count () const |
bool | insert (const Key &key, T *object, int cost=1) |
bool | isEmpty () const |
QList< Key > | keys () const |
int | maxCost () const |
T * | object (const Key &key) const |
T * | operator[] (const Key &key) const |
QCache (int maxCost=100) | |
bool | remove (const Key &key) |
void | setMaxCost (int m) |
int | size () const |
T * | take (const Key &key) |
int | totalCost () const |
~QCache () | |
Private Functions | |
T * | relink (const Key &key) |
void | trim (int m) |
void | unlink (Node &n) |
Properties | |
Node * | f |
QHash< Key, Node > | hash |
Node * | l |
int | mx |
int | total |
void * | unused |
Definition at line 134 of file qcache.h.
Referenced by QCache< QPixmapCache::Key, QPixmapCacheEntry >::relink().
|
inline |
Definition at line 138 of file qcache.h.
Referenced by QPMCache::clear(), QCache< QPixmapCache::Key, QPixmapCacheEntry >::keys(), and QCache< QPixmapCache::Key, QPixmapCacheEntry >::~QCache().
|
inline |
|
inline |
bool QCache< Key, T >::insert | ( | const Key & | key, |
T * | object, | ||
int | cost = 1 |
||
) |
Definition at line 181 of file qcache.h.
Referenced by QDirectFBPaintEnginePrivate::getSurface(), QPMCache::insert(), QCache< QPixmapCache::Key, QPixmapCacheEntry >::keys(), QPMCache::replace(), and QConfFileSettingsPrivate::~QConfFileSettingsPrivate().
|
inline |
|
inline |
Definition at line 105 of file qcache.h.
Referenced by QDirectFBPaintEngine::drawImage(), QDirectFBPaintEnginePrivate::getSurface(), and QCache< QPixmapCache::Key, QPixmapCacheEntry >::relink().
|
inline |
Definition at line 147 of file qcache.h.
Referenced by QPMCache::allPixmaps(), QCache< QPixmapCache::Key, QPixmapCacheEntry >::contains(), QCache< QPixmapCache::Key, QPixmapCacheEntry >::keys(), QPMCache::object(), and QCache< QPixmapCache::Key, QPixmapCacheEntry >::operator[]().
|
inline |
Definition at line 151 of file qcache.h.
Referenced by QCache< QPixmapCache::Key, QPixmapCacheEntry >::contains().
|
inlineprivate |
Definition at line 77 of file qcache.h.
Referenced by QCache< QPixmapCache::Key, QPixmapCacheEntry >::object().
|
inline |
Definition at line 155 of file qcache.h.
Referenced by QPMCache::insert(), QPMCache::remove(), and QPMCache::replace().
|
inline |
Definition at line 143 of file qcache.h.
Referenced by QDirectFBPaintEngine::drawBufferSpan(), and QCache< QPixmapCache::Key, QPixmapCacheEntry >::maxCost().
|
inline |
|
inline |
Definition at line 167 of file qcache.h.
Referenced by QCache< QPixmapCache::Key, QPixmapCacheEntry >::contains(), QDirectFBPaintEngine::drawBufferSpan(), and QConfFile::fromName().
|
inline |
|
private |
Definition at line 202 of file qcache.h.
Referenced by QCache< QPixmapCache::Key, QPixmapCacheEntry >::contains(), QCache< QPixmapCache::Key, QPixmapCacheEntry >::insert(), and QCache< QPixmapCache::Key, QPixmapCacheEntry >::setMaxCost().
Definition at line 67 of file qcache.h.
Referenced by QCache< QPixmapCache::Key, QPixmapCacheEntry >::remove(), QCache< QPixmapCache::Key, QPixmapCacheEntry >::take(), and QCache< QPixmapCache::Key, QPixmapCacheEntry >::trim().
Definition at line 62 of file qcache.h.
Referenced by QCache< QPixmapCache::Key, QPixmapCacheEntry >::clear(), QCache< QPixmapCache::Key, QPixmapCacheEntry >::insert(), and QCache< QPixmapCache::Key, QPixmapCacheEntry >::relink().
|
private |
|
private |
Definition at line 65 of file qcache.h.
Referenced by QCache< QPixmapCache::Key, QPixmapCacheEntry >::clear(), QCache< QPixmapCache::Key, QPixmapCacheEntry >::insert(), QCache< QPixmapCache::Key, QPixmapCacheEntry >::relink(), QCache< QPixmapCache::Key, QPixmapCacheEntry >::totalCost(), and QCache< QPixmapCache::Key, QPixmapCacheEntry >::trim().
|
private |