QGDict Class Reference
The QGDict class is an internal class for implementing QDict template classes.
More...
#include <qgdict.h>
Inherits QCollection.
Inherited by QAsciiDict, QDict, QIntDict and QPtrDict.
List of all member functions.
Public Members
- virtual uint count () const
- uint size () const
- QCollection::Item look_string ( const QString & key, QCollection::Item, int )
- QCollection::Item look_ascii ( const char * key, QCollection::Item, int )
- QCollection::Item look_int ( long key, QCollection::Item, int )
- QCollection::Item look_ptr ( void * key, QCollection::Item, int )
- QDataStream& read ( QDataStream & )
- QDataStream& write ( QDataStream & ) const
Protected Members
- enum KeyType { StringKey, AsciiKey, IntKey, PtrKey }
- QGDict ( uint len, KeyType kt, bool cs, bool ck )
- QGDict ( const QGDict & )
- ~QGDict ()
- QGDict& operator= ( const QGDict & )
- bool remove_string ( const QString & key, QCollection::Item item=0 )
- bool remove_ascii ( const char * key, QCollection::Item item=0 )
- bool remove_int ( long key, QCollection::Item item=0 )
- bool remove_ptr ( void * key, QCollection::Item item=0 )
- QCollection::Item take_string ( const QString & key )
- QCollection::Item take_ascii ( const char * key )
- QCollection::Item take_int ( long key )
- QCollection::Item take_ptr ( void * key )
- virtual void clear ()
- void resize ( uint )
- int hashKeyString ( const QString & )
- int hashKeyAscii ( const char * )
- void statistics () const
- virtual QDataStream& read ( QDataStream &, QCollection::Item & )
- virtual QDataStream& write ( QDataStream &, QCollection::Item ) const
Detailed Description
The QGDict class is an internal class for implementing QDict template classes.
QGDict is a strictly internal class that acts as a base class for the
collection classes QDict and QIntDict.
QGDict has some virtual functions that can be reimplemented to customize
the subclasses.
- read() reads a collection/dictionary item from a QDataStream.
- write() writes a collection/dictionary item to a QDataStream.
Normally, you do not have to reimplement any of these functions.
Member Function Documentation
QGDict::QGDict ( const QGDict & dict ) [protected]
For internal use only.
QGDict::QGDict ( uint len, KeyType kt, bool caseSensitive, bool copyKeys ) [protected]
For internal use only.
QGDict::~QGDict () [protected]
For internal use only.
void QGDict::clear () [virtual protected]
For internal use only.
Reimplemented from QCollection.
uint QGDict::count () const [virtual]
For internal use only.
Reimplemented from QCollection.
int QGDict::hashKeyString ( const QString & key ) [protected]
For internal use only.
QCollection::Item QGDict::look_ascii( const char * key, QCollection::Item d, int op )
For internal use only.
QCollection::Item QGDict::look_int( long key, QCollection::Item d, int op )
For internal use only.
QCollection::Item QGDict::look_ptr( void * key, QCollection::Item d, int op )
For internal use only.
QCollection::Item QGDict::look_string( const QString & key, QCollection::Item d, int op )
For internal use only.
QGDict & QGDict::operator= ( const QGDict & dict ) [protected]
For internal use only.
For internal use only.
Reads a collection/dictionary item from the stream s and returns a
reference to the stream.
The default implementation sets item to 0.
See also: write().
bool QGDict::remove_ascii ( const char * key, QCollection::Item item=0 ) [protected]
For internal use only.
bool QGDict::remove_int ( long key, QCollection::Item item=0 ) [protected]
For internal use only.
bool QGDict::remove_ptr ( void * key, QCollection::Item item=0 ) [protected]
For internal use only.
bool QGDict::remove_string ( const QString & key, QCollection::Item item=0 ) [protected]
For internal use only.
void QGDict::resize ( uint newsize ) [protected]
For internal use only.
uint QGDict::size () const
For internal use only.
void QGDict::statistics () const [protected]
For internal use only.
QCollection::Item QGDict::take_ascii( const char * key ) [protected]
For internal use only.
QCollection::Item QGDict::take_int( long key ) [protected]
For internal use only.
QCollection::Item QGDict::take_ptr( void * key ) [protected]
For internal use only.
QCollection::Item QGDict::take_string( const QString & key ) [protected]
For internal use only.
For internal use only.
Writes a collection/dictionary item to the stream s and returns a
reference to the stream.
See also: read().
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
|