45 #define USE_ASCII_STRING 47 #ifndef USE_ASCII_STRING 103 bool remove(
const char *
k )
139 #ifndef USE_ASCII_STRING
QCache(int maxCost=100, int size=17, bool caseSensitive=TRUE)
The QGCache class is an internal class for implementing QCache template classes.
QCollection::Item operator-=(uint)
QCollection::Item find_string(const QString &key, bool ref=TRUE) const
QGCacheIterator & operator=(const QGCacheIterator &)
QGCache(int maxCost, uint size, KeyType kt, bool caseSensitive, bool copyKeys)
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
QCollection::Item take_string(const QString &key)
bool insert(const char *k, const type *d, int c=1, int p=0)
QGCache & operator=(const QGCache &)
QCollection::Item toFirst()
QCacheIterator(const QCache< type > &c)
void setMaxCost(int maxCost)
type * operator[](const char *k) const
bool insert_string(const QString &key, QCollection::Item, int cost, int priority)
An internal class for implementing QCacheIterator and QIntCacheIterator.
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
bool remove_other(const char *key)
QCacheIterator(const QCacheIterator< type > &ci)
QCollection::Item operator+=(uint)
QCollection::Item operator++()
QCache< type > & operator=(const QCache< type > &c)
type * operator-=(uint j)
QCollection::Item find_other(const char *key, bool ref=TRUE) const
const char * currentKey() const
QCache(const QCache< type > &c)
bool remove_string(const QString &key)
const char * getKeyAscii() const
QCollection::Item take_other(const char *key)
type * operator+=(uint j)
QCollection::Item operator--()
QCollection::Item operator()()
type * take(const char *k)
type * find(const char *k, bool ref=TRUE) const
bool insert_other(const char *key, QCollection::Item, int cost, int priority)
QCollection::Item get() const
virtual void deleteItem(Item)
QCacheIterator< type > & operator=(const QCacheIterator< type > &ci)
QCollection::Item toLast()
QString getKeyString() const