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 } |
Private Member Functions | |
void | unlink_common (int, QBaseBucket *, QBaseBucket *) |
QStringBucket * | unlink_string (const QString &, QCollection::Item item=0) |
QAsciiBucket * | unlink_ascii (const char *, QCollection::Item item=0) |
QIntBucket * | unlink_int (long, QCollection::Item item=0) |
QPtrBucket * | unlink_ptr (void *, QCollection::Item item=0) |
void | init (uint, KeyType, bool, bool) |
Private Attributes | |
QBaseBucket ** | vec |
uint | vlen |
uint | numItems |
uint | keytype: 2 |
uint | cases: 1 |
uint | copyk: 1 |
QGDItList * | iterators |
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.
|
protected |
Enumerator | |
---|---|
StringKey | |
AsciiKey | |
IntKey | |
PtrKey |
Definition at line 222 of file qgdict.cpp.
|
protected |
Definition at line 259 of file qgdict.cpp.
|
protected |
Definition at line 289 of file qgdict.cpp.
|
protectedvirtual |
Removes all objects from the collection. The objects will be deleted if auto-delete has been enabled.
Implements QCollection.
Reimplemented in QAsciiDict< Entry >, 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 >.
Definition at line 857 of file qgdict.cpp.
|
inlinevirtual |
Returns the number of objects in the collection.
Implements QCollection.
Reimplemented in QAsciiDict< Entry >, 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 >.
Definition at line 107 of file qgdict.h.
|
protected |
Definition at line 123 of file qgdict.cpp.
|
protected |
Definition at line 86 of file qgdict.cpp.
Definition at line 228 of file qgdict.cpp.
QCollection::Item QGDict::look_ascii | ( | const char * | key, |
QCollection::Item | d, | ||
int | op | ||
) |
Definition at line 422 of file qgdict.cpp.
QCollection::Item QGDict::look_int | ( | long | key, |
QCollection::Item | d, | ||
int | op | ||
) |
Definition at line 461 of file qgdict.cpp.
QCollection::Item QGDict::look_ptr | ( | void * | key, |
QCollection::Item | d, | ||
int | op | ||
) |
Definition at line 492 of file qgdict.cpp.
QCollection::Item QGDict::look_string | ( | const QString & | key, |
QCollection::Item | d, | ||
int | op | ||
) |
Definition at line 382 of file qgdict.cpp.
Definition at line 309 of file qgdict.cpp.
QDataStream & QGDict::read | ( | QDataStream & | s | ) |
Definition at line 997 of file qgdict.cpp.
|
protectedvirtual |
Reads a collection/dictionary item from the stream s and returns a reference to the stream.
The default implementation sets item to 0.
Definition at line 194 of file qgdict.cpp.
|
protected |
Definition at line 747 of file qgdict.cpp.
|
protected |
Definition at line 762 of file qgdict.cpp.
|
protected |
Definition at line 775 of file qgdict.cpp.
|
protected |
Definition at line 732 of file qgdict.cpp.
|
protected |
Definition at line 527 of file qgdict.cpp.
|
protected |
Definition at line 930 of file qgdict.cpp.
|
protected |
Definition at line 804 of file qgdict.cpp.
|
protected |
Definition at line 822 of file qgdict.cpp.
|
protected |
Definition at line 838 of file qgdict.cpp.
|
protected |
Definition at line 788 of file qgdict.cpp.
|
private |
Definition at line 663 of file qgdict.cpp.
|
private |
Definition at line 610 of file qgdict.cpp.
|
private |
Definition at line 684 of file qgdict.cpp.
|
private |
Definition at line 704 of file qgdict.cpp.
|
private |
Definition at line 627 of file qgdict.cpp.
QDataStream & QGDict::write | ( | QDataStream & | s | ) | const |
Definition at line 1054 of file qgdict.cpp.
|
protectedvirtual |
Writes a collection/dictionary item to the stream s and returns a reference to the stream.
Definition at line 207 of file qgdict.cpp.
|
friend |
|
private |