![]() |
Qt 6.x
The Qt SDK
|
#include <qcache3q_p.h>
Inheritance diagram for QCache3Q< Key, T, EvPolicy >:
Collaboration diagram for QCache3Q< Key, T, EvPolicy >:Public Member Functions | |
| QCache3Q (int maxCost=0, int minRecent=-1, int maxOldPopular=-1) | |
| ~QCache3Q () | |
| int | maxCost () const |
| void | setMaxCost (int maxCost, int minRecent=-1, int maxOldPopular=-1) |
| int | promoteAt () const |
| void | setPromoteAt (int p) |
| int | totalCost () const |
| void | clear () |
| bool | insert (const Key &key, QSharedPointer< T > object, int cost=1) |
| QSharedPointer< T > | object (const Key &key) const |
| QSharedPointer< T > | operator[] (const Key &key) const |
| void | remove (const Key &key, bool force=false) |
| QList< Key > | keys () const |
| void | printStats () |
| void | deserializeQueue (int queueNumber, const QList< Key > &keys, const QList< QSharedPointer< T > > &values, const QList< int > &costs) |
| void | serializeQueue (int queueNumber, QList< QSharedPointer< T > > &buffer) |
Additional Inherited Members | |
Protected Member Functions inherited from QCache3QDefaultEvictionPolicy< Key, T > | |
| void | aboutToBeEvicted (const Key &key, QSharedPointer< T > obj) |
| void | aboutToBeRemoved (const Key &key, QSharedPointer< T > obj) |
Definition at line 75 of file qcache3q_p.h.
|
explicit |
Definition at line 167 of file qcache3q_p.h.
|
inline |
Definition at line 113 of file qcache3q_p.h.
References QCache3Q< Key, T, EvPolicy >::clear().
Here is the call graph for this function:Definition at line 270 of file qcache3q_p.h.
Referenced by QCache3Q< Key, T, EvPolicy >::~QCache3Q(), and QGeoFileTileCache::clearAll().
Here is the caller graph for this function:| void QCache3Q< Key, T, EvPolicy >::deserializeQueue | ( | int | queueNumber, |
| const QList< Key > & | keys, | ||
| const QList< QSharedPointer< T > > & | values, | ||
| const QList< int > & | costs | ||
| ) |
Definition at line 191 of file qcache3q_p.h.
References clear(), i, keys, Q_ASSERT, and queue.
Referenced by QGeoFileTileCache::loadTiles().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QCache3Q< Key, T, EvPolicy >::insert | ( | const Key & | key, |
| QSharedPointer< T > | object, | ||
| int | cost = 1 |
||
| ) |
Definition at line 228 of file qcache3q_p.h.
References cost().
Referenced by QGeoFileTileCache::addToDiskCache(), QGeoFileTileCache::addToDiskCache(), QGeoFileTileCache::addToMemoryCache(), and QGeoFileTileCache::addToTextureCache().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 392 of file qcache3q_p.h.
Referenced by QGeoFileTileCache::clearMapId(), and QGeoFileTileCacheOsm::dropTiles().
Here is the caller graph for this function:
|
inline |
Definition at line 115 of file qcache3q_p.h.
Referenced by QGeoFileTileCache::maxDiskUsage(), QGeoFileTileCache::maxMemoryUsage(), and QGeoFileTileCache::maxTextureUsage().
Here is the caller graph for this function:| QSharedPointer< T > QCache3Q< Key, T, EvPolicy >::object | ( | const Key & | key | ) | const |
Definition at line 398 of file qcache3q_p.h.
Referenced by QGeoFileTileCache::getFromDisk(), and QGeoFileTileCache::getFromMemory().
Here is the caller graph for this function:
|
inline |
Definition at line 434 of file qcache3q_p.h.
Definition at line 153 of file qcache3q_p.h.
References qDebug.
Referenced by QGeoFileTileCache::printStats().
Here is the caller graph for this function:
|
inline |
Definition at line 118 of file qcache3q_p.h.
| void QCache3Q< Key, T, EvPolicy >::remove | ( | const Key & | key, |
| bool | force = false |
||
| ) |
Definition at line 378 of file qcache3q_p.h.
Referenced by QGeoFileTileCache::clearMapId(), and QGeoFileTileCacheOsm::dropTiles().
Here is the caller graph for this function:| void QCache3Q< Key, T, EvPolicy >::serializeQueue | ( | int | queueNumber, |
| QList< QSharedPointer< T > > & | buffer | ||
| ) |
Definition at line 179 of file qcache3q_p.h.
References Q_ASSERT, and queue.
Referenced by QGeoFileTileCache::~QGeoFileTileCache().
Here is the caller graph for this function:
|
inline |
Definition at line 215 of file qcache3q_p.h.
Referenced by QGeoFileTileCache::setExtraTextureUsage(), QGeoFileTileCache::setMaxDiskUsage(), QGeoFileTileCache::setMaxMemoryUsage(), and QGeoFileTileCache::setMinTextureUsage().
Here is the caller graph for this function:
|
inline |
Definition at line 119 of file qcache3q_p.h.
|
inline |
Definition at line 121 of file qcache3q_p.h.
Referenced by QGeoFileTileCache::diskUsage(), QGeoFileTileCache::memoryUsage(), and QGeoFileTileCache::textureUsage().
Here is the caller graph for this function: