Eneboo - Documentación para desarrolladores
|
#include <qcache.h>
Métodos públicos | |
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 |
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 |
QCache< type >::QCache | ( | int | maxCost = 100 , |
int | size = 17 , |
||
bool | caseSensitive = TRUE |
||
) | [inline] |
QCache< type >::QCache | ( | int | maxCost = 100 , |
int | size = 17 , |
||
bool | caseSensitive = TRUE |
||
) | [inline] |
Clears the cache.
Reimplementado de QGCache.
Clears the cache.
Reimplementado de QGCache.
Returns the number of items in the cache.
Reimplementado de QGCache.
Returns the number of items in the cache.
Reimplementado de QGCache.
type* QCache< type >::find | ( | const QString & | k, |
bool | ref = TRUE |
||
) | const [inline] |
type* QCache< type >::find | ( | const QString & | k, |
bool | ref = TRUE |
||
) | const [inline] |
bool QCache< type >::insert | ( | const QString & | k, |
const type * | d, | ||
int | c = 1 , |
||
int | p = 0 |
||
) | [inline] |
Reimplementado en QPMCache.
bool QCache< type >::insert | ( | const QString & | k, |
const type * | d, | ||
int | c = 1 , |
||
int | p = 0 |
||
) | [inline] |
Reimplementado en QPMCache.
Returns the maximum cache cost.
Reimplementado de QGCache.
Returns the maximum cache cost.
Reimplementado de QGCache.
Sets the maximum cache cost to maxCost.
Reimplementado de QGCache.
Sets the maximum cache cost to maxCost.
Reimplementado de QGCache.
Returns the size of the hash array.
Reimplementado de QGCache.
Returns the size of the hash array.
Reimplementado de QGCache.
Outputs debug statistics.
Reimplementado de QGCache.
Outputs debug statistics.
Reimplementado de QGCache.
Returns the total cache cost.
Reimplementado de QGCache.
Returns the total cache cost.
Reimplementado de QGCache.