#include <QtCore/QCache>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QCache



Public Functions Index

QCache (int maxCost=100)
~QCache ()
voidclear ()
boolcontains (const Key &key) const
intcount () const
boolinsert (const Key &key, T *object, int cost=1)
boolisEmpty () const
QList< Key >keys () const
intmaxCost () const
T *object (const Key &key) const
T *operator[] (const Key &key) const
boolremove (const Key &key)
voidsetMaxCost (int m)
intsize () const
T *take (const Key &key)
inttotalCost () const

Public Functions

QCache (
  • intmaxCost)

~QCache ()


void clear ()

bool contains (
  • const Key &key)

int count ()

bool insert (
  • const Key &key,
  • T *object,
  • intcost )

bool isEmpty ()

QList< Key > keys ()

int maxCost ()

T * object (
  • const Key &key)

T * operator[] (
  • const Key &key)

bool remove (
  • const Key &key)

void setMaxCost (
  • intm)

int size ()

T * take (
  • const Key &key)

int totalCost ()

Last modified: 2015-07-24

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus