![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qcache3q_p.h>
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 163 of file qcache3q_p.h.
|
inline |
Definition at line 114 of file qcache3q_p.h.
References clear().
Definition at line 268 of file qcache3q_p.h.
Referenced by ~QCache3Q(), and deserializeQueue().
void QCache3Q< Key, T, EvPolicy >::deserializeQueue | ( | int | queueNumber, |
const QList< Key > & | keys, | ||
const QList< QSharedPointer< T > > & | values, | ||
const QList< int > & | costs ) |
Definition at line 187 of file qcache3q_p.h.
References clear().
bool QCache3Q< Key, T, EvPolicy >::insert | ( | const Key & | key, |
QSharedPointer< T > | object, | ||
int | cost = 1 ) |
Definition at line 224 of file qcache3q_p.h.
QList< Key > QCache3Q< Key, T, EvPolicy >::keys | ( | ) | const |
Definition at line 391 of file qcache3q_p.h.
|
inline |
Definition at line 116 of file qcache3q_p.h.
Referenced by printStats().
QSharedPointer< T > QCache3Q< Key, T, EvPolicy >::object | ( | const Key & | key | ) | const |
Definition at line 397 of file qcache3q_p.h.
|
inline |
Definition at line 433 of file qcache3q_p.h.
Definition at line 149 of file qcache3q_p.h.
References maxCost(), and totalCost().
|
inline |
Definition at line 119 of file qcache3q_p.h.
void QCache3Q< Key, T, EvPolicy >::remove | ( | const Key & | key, |
bool | force = false ) |
Definition at line 376 of file qcache3q_p.h.
void QCache3Q< Key, T, EvPolicy >::serializeQueue | ( | int | queueNumber, |
QList< QSharedPointer< T > > & | buffer ) |
Definition at line 175 of file qcache3q_p.h.
|
inline |
Definition at line 211 of file qcache3q_p.h.
|
inline |
Definition at line 120 of file qcache3q_p.h.
|
inline |
Definition at line 122 of file qcache3q_p.h.
Referenced by printStats().