Eneboo - Documentación para desarrolladores
|
The QGCache class is an internal class for implementing QCache template classes. Más...
#include <qgcache.h>
enum QGCache::KeyType [protected] |
enum QGCache::KeyType [protected] |
QGCache::QGCache | ( | int | maxCost, |
uint | size, | ||
KeyType | kt, | ||
bool | caseSensitive, | ||
bool | copyKeys | ||
) | [protected] |
Constructs a cache. The maximum cost of the cache is given by maxCost and the size by size. The key type is kt which may be StringKey
, AsciiKey
, IntKey
or PtrKey
. The case-sensitivity of lookups is set with caseSensitive. Keys are copied if copyKeys is TRUE.
QGCache::QGCache | ( | const QGCache & | ) | [protected] |
Cannot copy a cache.
QGCache::~QGCache | ( | ) | [protected] |
Removes all items from the cache and destroys it.
QGCache::QGCache | ( | int | maxCost, |
uint | size, | ||
KeyType | kt, | ||
bool | caseSensitive, | ||
bool | copyKeys | ||
) | [protected] |
QGCache::QGCache | ( | const QGCache & | ) | [protected] |
QGCache::~QGCache | ( | ) | [protected] |
void QGCache::clear | ( | void | ) | [protected, virtual] |
Clears the cache.
Implementa QPtrCollection.
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
void QGCache::clear | ( | void | ) | [protected, virtual] |
Removes all objects from the collection. The objects will be deleted if auto-delete has been enabled.
Implementa QPtrCollection.
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
uint QGCache::count | ( | ) | const [protected, virtual] |
Returns the number of objects in the collection.
Implementa QPtrCollection.
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
uint QGCache::count | ( | ) | const [protected, virtual] |
Returns the number of items in the cache.
Implementa QPtrCollection.
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
QPtrCollection::Item QGCache::find_other | ( | const char * | key, |
bool | ref = TRUE |
||
) | const [protected] |
Finds an item for key in the cache and adds a reference if ref is TRUE.
QPtrCollection::Item QGCache::find_other | ( | const char * | key, |
bool | ref = TRUE |
||
) | const [protected] |
QPtrCollection::Item QGCache::find_string | ( | const QString & | key, |
bool | ref = TRUE |
||
) | const [protected] |
Finds an item for key in the cache and adds a reference if ref is TRUE.
QPtrCollection::Item QGCache::find_string | ( | const QString & | key, |
bool | ref = TRUE |
||
) | const [protected] |
bool QGCache::insert_other | ( | const char * | key, |
QPtrCollection::Item | data, | ||
int | cost, | ||
int | priority | ||
) | [protected] |
bool QGCache::insert_other | ( | const char * | key, |
QPtrCollection::Item | , | ||
int | cost, | ||
int | priority | ||
) | [protected] |
bool QGCache::insert_string | ( | const QString & | key, |
QPtrCollection::Item | data, | ||
int | cost, | ||
int | priority | ||
) | [protected] |
Inserts an item with data data into the cache using key key. The item has cost cost and priority priority.
bool QGCache::insert_string | ( | const QString & | key, |
QPtrCollection::Item | , | ||
int | cost, | ||
int | priority | ||
) | [protected] |
int QGCache::maxCost | ( | ) | const [inline, protected] |
Returns the maximum cache cost.
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
int QGCache::maxCost | ( | ) | const [inline, protected] |
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
bool QGCache::remove_other | ( | const char * | key | ) | [protected] |
bool QGCache::remove_other | ( | const char * | key | ) | [protected] |
Removes the item with key key from the cache. Returns TRUE if the item was removed; otherwise returns FALSE.
void QGCache::setMaxCost | ( | int | maxCost | ) | [protected] |
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
void QGCache::setMaxCost | ( | int | maxCost | ) | [protected] |
Sets the maximum cache cost to maxCost.
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
uint QGCache::size | ( | ) | const [protected] |
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
uint QGCache::size | ( | ) | const [protected] |
Returns the size of the hash array.
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
void QGCache::statistics | ( | ) | const [protected] |
Outputs debug statistics.
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
void QGCache::statistics | ( | ) | const [protected] |
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
QPtrCollection::Item QGCache::take_other | ( | const char * | key | ) | [protected] |
Takes the item with key key out of the cache. The item is not deleted. If no item has this key 0 is returned.
QPtrCollection::Item QGCache::take_other | ( | const char * | key | ) | [protected] |
QPtrCollection::Item QGCache::take_string | ( | const QString & | key | ) | [protected] |
QPtrCollection::Item QGCache::take_string | ( | const QString & | key | ) | [protected] |
Takes the item with key key out of the cache. The item is not deleted. If no item has this key 0 is returned.
int QGCache::totalCost | ( | ) | const [inline, protected] |
Returns the total cache cost.
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
int QGCache::totalCost | ( | ) | const [inline, protected] |
Reimplementado en QAsciiCache< type >, QCache< type >, QIntCache< type >, QAsciiCache< type >, QCache< type >, QIntCache< type >, QCache< QPixmap >, QCache< QPixmap >, QCache< QString >, QCache< QString >, QCache< MessageDevice >, QCache< MessageDevice >, QCache< FLPGresult >, QCache< FLPGresult >, QCache< FLMYresult >, QCache< FLMYresult >, QIntCache< BluecurveColorData > y QIntCache< BluecurveColorData >.
QGCacheIterator [friend] |