|
ISLEman
|
The QGDict class is an internal class for implementing QDict template classes. More...
#include <qgdict.h>
Public Member Functions | |
| 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 |
Public Member Functions inherited from QCollection | |
| bool | autoDelete () const |
| void | setAutoDelete (bool enable) |
Protected Types | |
| enum | KeyType { StringKey, AsciiKey, IntKey, PtrKey } |
Protected Member Functions | |
| QGDict (uint len, KeyType kt, bool cs, bool ck) | |
| QGDict (const 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) |
| 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 |
Protected Member Functions inherited from QCollection | |
| QCollection () | |
| QCollection (const QCollection &) | |
| virtual | ~QCollection () |
| virtual Item | newItem (Item) |
| virtual void | deleteItem (Item) |
Friends | |
| class | QGDictIterator |
Additional Inherited Members | |
Public Types inherited from QCollection | |
| typedef void * | Item |
Protected Attributes inherited from QCollection | |
| bool | del_item |
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.
Normally, you do not have to reimplement any of these functions.
|
protectedvirtual |
Removes all objects from the collection. The objects will be deleted if auto-delete has been enabled.
Implements QCollection.
Reimplemented in QIntDict< type >, QPtrDict< type >, QIntDict< MemberDef >, QIntDict< Definition >, QIntDict< MemberGroup >, QIntDict< T >, QIntDict< MemberGroupInfo >, QIntDict< URL >, QIntDict< URLInfo >, QIntDict< ClassDef >, QIntDict< RefItem >, QIntDict< char >, QIntDict< uint >, and QIntDict< SearchIndexList >.
|
inlinevirtual |
Returns the number of objects in the collection.
Implements QCollection.
Reimplemented in QIntDict< type >, QPtrDict< type >, QIntDict< MemberDef >, QIntDict< Definition >, QIntDict< MemberGroup >, QIntDict< T >, QIntDict< MemberGroupInfo >, QIntDict< URL >, QIntDict< URLInfo >, QIntDict< ClassDef >, QIntDict< RefItem >, QIntDict< char >, QIntDict< uint >, and QIntDict< SearchIndexList >.
|
protectedvirtual |
Reads a collection/dictionary item from the stream s and returns a reference to the stream.
The default implementation sets item to 0.
|
protectedvirtual |
Writes a collection/dictionary item to the stream s and returns a reference to the stream.
1.8.12