QGCache Class Reference
The QGCache class is an internal class for implementing QCache template classes.
More...
#include <qgcache.h>
Inherits QCollection.
Inherited by QAsciiCache, QCache and QIntCache.
List of all member functions.
Protected Members
- enum KeyType { StringKey, AsciiKey, IntKey, PtrKey }
- QGCache ( int maxCost, uint size, KeyType kt, bool caseSensitive, bool copyKeys )
- QGCache ( const QGCache & )
- ~QGCache ()
- QGCache& operator= ( const QGCache & )
- virtual uint count () const
- uint size () const
- int maxCost () const
- int totalCost () const
- void setMaxCost ( int maxCost )
- virtual void clear ()
- bool insert_string ( const QString & key, QCollection::Item, int cost, int priority )
- bool insert_other ( const char * key, QCollection::Item, int cost, int priority )
- bool remove_string ( const QString & key )
- bool remove_other ( const char * key )
- QCollection::Item take_string ( const QString & key )
- QCollection::Item take_other ( const char * key )
- QCollection::Item find_string ( const QString & key, bool ref=TRUE ) const
- QCollection::Item find_other ( const char * key, bool ref=TRUE ) const
- void statistics () const
Detailed Description
The QGCache class is an internal class for implementing QCache template classes.
QGCache is a strictly internal class that acts as a base class for the
collection classes QCache and QIntCache.
Member Function Documentation
QGCache::QGCache ( const QGCache & ) [protected]
For internal use only.
QGCache::QGCache ( int maxCost, uint size, KeyType kt, bool caseSensitive, bool copyKeys ) [protected]
For internal use only.
QGCache::~QGCache () [protected]
For internal use only.
void QGCache::clear () [virtual protected]
For internal use only.
Reimplemented from QCollection.
uint QGCache::count () const [virtual protected]
For internal use only.
Reimplemented from QCollection.
QCollection::Item QGCache::find_other( const char * key, bool ref=TRUE ) const [protected]
For internal use only.
QCollection::Item QGCache::find_string( const QString & key, bool ref=TRUE ) const [protected]
For internal use only.
bool QGCache::insert_other ( const char * key, QCollection::Item data, int cost, int priority ) [protected]
For internal use only.
bool QGCache::insert_string ( const QString & key, QCollection::Item data, int cost, int priority ) [protected]
For internal use only.
int QGCache::maxCost () const [protected]
For internal use only.
QGCache & QGCache::operator= ( const QGCache & ) [protected]
For internal use only.
bool QGCache::remove_other ( const char * key ) [protected]
For internal use only.
bool QGCache::remove_string ( const QString & key ) [protected]
For internal use only.
void QGCache::setMaxCost ( int maxCost ) [protected]
For internal use only.
uint QGCache::size () const [protected]
For internal use only.
void QGCache::statistics () const [protected]
For internal use only.
QCollection::Item QGCache::take_other( const char * key ) [protected]
For internal use only.
QCollection::Item QGCache::take_string( const QString & key ) [protected]
For internal use only.
int QGCache::totalCost () const [protected]
For internal use only.
Search the documentation, FAQ, qt-interest archive and more (uses
www.troll.no):
This file is part of the Qt toolkit,
copyright © 1995-99
Troll Tech, all rights reserved.
Copyright © 1999 Troll Tech | Trademarks
| Qt version 2.0.2
|