Eneboo - Documentación para desarrolladores
|
#include <qintcache.h>
Métodos públicos | |
QIntCache (const QIntCache< type > &c) | |
QIntCache (int maxCost=100, int size=17) | |
~QIntCache () | |
QIntCache< type > & | operator= (const QIntCache< type > &c) |
int | maxCost () const |
int | totalCost () const |
void | setMaxCost (int m) |
uint | count () const |
uint | size () const |
bool | isEmpty () const |
bool | insert (long k, const type *d, int c=1, int p=0) |
bool | remove (long k) |
type * | take (long k) |
void | clear () |
type * | find (long k, bool ref=TRUE) const |
type * | operator[] (long k) const |
void | statistics () const |
QIntCache (const QIntCache< type > &c) | |
QIntCache (int maxCost=100, int size=17) | |
~QIntCache () | |
QIntCache< type > & | operator= (const QIntCache< type > &c) |
int | maxCost () const |
int | totalCost () const |
void | setMaxCost (int m) |
uint | count () const |
uint | size () const |
bool | isEmpty () const |
bool | insert (long k, const type *d, int c=1, int p=0) |
bool | remove (long k) |
type * | take (long k) |
void | clear () |
type * | find (long k, bool ref=TRUE) const |
type * | operator[] (long k) const |
void | statistics () const |
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.
bool QIntCache< type >::insert | ( | long | k, |
const type * | d, | ||
int | c = 1 , |
||
int | p = 0 |
||
) | [inline] |
bool QIntCache< type >::insert | ( | long | k, |
const type * | d, | ||
int | c = 1 , |
||
int | p = 0 |
||
) | [inline] |
Returns the maximum cache cost.
Reimplementado de QGCache.
Returns the maximum cache cost.
Reimplementado de QGCache.
QIntCache<type>& QIntCache< type >::operator= | ( | const QIntCache< type > & | c | ) | [inline] |
QIntCache<type>& QIntCache< type >::operator= | ( | const QIntCache< type > & | c | ) | [inline] |
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.