#include </home/clem/local/src/opie/qmake/include/qgdict.h>
Inheritance diagram for QGDict:


For internal use only.
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.
Definition at line 104 of file qgdict.h.
|
|
|
|
||||||||||||||||||||
|
Constructs a dictionary.
len is the initial size of the dictionary. The key type is kt which may be Definition at line 199 of file qgdict.cpp. References init(). |
|
|
Constructs a copy of dict. Definition at line 238 of file qgdict.cpp. References AsciiKey, QGDictIterator::get(), QGDictIterator::getKeyAscii(), QGDictIterator::getKeyInt(), QGDictIterator::getKeyPtr(), QGDictIterator::getKeyString(), init(), IntKey, keytype, look_ascii(), look_int(), look_ptr(), look_string(), op_insert, PtrKey, and StringKey. |
|
|
Removes all items from the dictionary and destroys it. Definition at line 267 of file qgdict.cpp. References clear(), QPtrList< type >::first(), i, iterators, QPtrList< type >::next(), and vec. |
|
|
|
|
Returns the hash key for key, which is a C string. Definition at line 123 of file qgdict.cpp. References cases, g, and qWarning(). Referenced by look_ascii(), and unlink_ascii(). |
|
|
Returns the hash key for key, when key is a string. Definition at line 88 of file qgdict.cpp. References cases, QChar::cell(), g, i, QString::isNull(), QString::length(), QChar::lower(), p, qWarning(), and QString::unicode(). Referenced by look_string(), and unlink_string(). |
|
||||||||||||||||||||
|
Definition at line 205 of file qgdict.cpp. References AsciiKey, cases, copyk, FALSE, iterators, keytype, numItems, StringKey, vec, and vlen. Referenced by QGDict(). |
|
||||||||||||||||
|
Definition at line 369 of file qgdict.cpp. References cases, copyk, QBaseBucket::getData(), QAsciiBucket::getKey(), QBaseBucket::getNext(), hashKeyAscii(), QPtrCollection::newItem(), numItems, op_find, op_replace, qstrcmp(), qstrdup(), qstricmp(), qWarning(), remove_ascii(), vec, and vlen. Referenced by QAsciiDict< int >::insert(), QCDict::insert_ascii(), operator=(), QGDict(), read(), QAsciiDict< int >::replace(), and resize(). |
|
||||||||||||||||
|
Definition at line 405 of file qgdict.cpp. References QBaseBucket::getData(), QIntBucket::getKey(), QBaseBucket::getNext(), QPtrCollection::newItem(), numItems, op_find, op_replace, qWarning(), remove_int(), vec, and vlen. Referenced by QIntDict< TVVariant >::insert(), QCDict::insert_int(), operator=(), QGDict(), read(), QIntDict< TVVariant >::replace(), and resize(). |
|
||||||||||||||||
|
Definition at line 433 of file qgdict.cpp. References QBaseBucket::getData(), QPtrBucket::getKey(), QBaseBucket::getNext(), QPtrCollection::newItem(), numItems, op_find, op_replace, qWarning(), remove_ptr(), vec, and vlen. Referenced by operator=(), QGDict(), read(), and resize(). |
|
||||||||||||||||
|
The do-it-all function; op is one of op_find, op_insert, op_replace. The key is key and the item is d. Definition at line 329 of file qgdict.cpp. References cases, QBaseBucket::getData(), QStringBucket::getKey(), QBaseBucket::getNext(), hashKeyString(), QPtrCollection::newItem(), numItems, op_find, op_replace, qWarning(), remove_string(), vec, and vlen. Referenced by QDict< OContact >::insert(), QCDict::insert_string(), operator=(), QGDict(), read(), QDict< OContact >::replace(), and resize(). |
|
|
Assigns dict to this dictionary. Definition at line 286 of file qgdict.cpp. References AsciiKey, clear(), QGDictIterator::get(), QGDictIterator::getKeyAscii(), QGDictIterator::getKeyInt(), QGDictIterator::getKeyPtr(), QGDictIterator::getKeyString(), IntKey, keytype, look_ascii(), look_int(), look_ptr(), look_string(), op_insert, PtrKey, and StringKey. Referenced by QIntDict< TVVariant >::operator=(), QDict< OContact >::operator=(), and QAsciiDict< int >::operator=(). |
|
||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 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 166 of file qgdict.cpp. |
|
|
Reads a dictionary from the stream s. Definition at line 907 of file qgdict.cpp. References AsciiKey, clear(), copyk, d, IntKey, keytype, look_ascii(), look_int(), look_ptr(), look_string(), op_insert, PtrKey, and StringKey. Referenced by operator>>(). |
|
||||||||||||
|
Definition at line 682 of file qgdict.cpp. References copyk, QPtrCollection::deleteItem(), QBaseBucket::getData(), QAsciiBucket::getKey(), and unlink_ascii(). Referenced by look_ascii(), QAsciiDict< int >::remove(), and QCDict::remove_ascii(). |
|
||||||||||||
|
Definition at line 694 of file qgdict.cpp. References QPtrCollection::deleteItem(), QBaseBucket::getData(), and unlink_int(). Referenced by look_int(), QIntDict< TVVariant >::remove(), and QCDict::remove_int(). |
|
||||||||||||
|
Definition at line 704 of file qgdict.cpp. References QPtrCollection::deleteItem(), QBaseBucket::getData(), and unlink_ptr(). Referenced by look_ptr(). |
|
||||||||||||
|
Removes the item with the specified key. If item is not null, the remove will match the item as well (used to remove an item when several items have the same key). Definition at line 670 of file qgdict.cpp. References QPtrCollection::deleteItem(), FALSE, QBaseBucket::getData(), TRUE, and unlink_string(). Referenced by look_string(), QDict< OContact >::remove(), and QCDict::remove_string(). |
|
|
|
|
|
Reimplemented in QCDict. Definition at line 727 of file qgdict.cpp. References copyk, d, QBaseBucket::getData(), QAsciiBucket::getKey(), and unlink_ascii(). Referenced by QAsciiDict< int >::take(), and QCDict::take_ascii(). |
|
|
Reimplemented in QCDict. Definition at line 742 of file qgdict.cpp. References d, QBaseBucket::getData(), and unlink_int(). Referenced by QIntDict< TVVariant >::take(), and QCDict::take_int(). |
|
|
Definition at line 755 of file qgdict.cpp. References d, QBaseBucket::getData(), and unlink_ptr(). |
|
|
Reimplemented in QCDict. Definition at line 714 of file qgdict.cpp. References d, QBaseBucket::getData(), and unlink_string(). Referenced by QDict< OContact >::take(), and QCDict::take_string(). |
|
||||||||||||
|
Definition at line 602 of file qgdict.cpp. References cases, QBaseBucket::getData(), QAsciiBucket::getKey(), QBaseBucket::getNext(), hashKeyAscii(), numItems, qstrcmp(), qstricmp(), unlink_common(), vec, and vlen. Referenced by remove_ascii(), and take_ascii(). |
|
||||||||||||||||
|
Unlinks the bucket with the specified key (and specified data pointer, if it is set). Definition at line 549 of file qgdict.cpp. References QPtrList< type >::count(), QGDictIterator::curNode, QPtrList< type >::first(), QBaseBucket::getNext(), i, iterators, QPtrList< type >::next(), numItems, and vec. Referenced by unlink_ascii(), unlink_int(), unlink_ptr(), and unlink_string(). |
|
||||||||||||
|
Definition at line 623 of file qgdict.cpp. References QBaseBucket::getData(), QIntBucket::getKey(), QBaseBucket::getNext(), numItems, unlink_common(), vec, and vlen. Referenced by remove_int(), and take_int(). |
|
||||||||||||
|
Definition at line 643 of file qgdict.cpp. References QBaseBucket::getData(), QPtrBucket::getKey(), QBaseBucket::getNext(), numItems, unlink_common(), vec, and vlen. Referenced by remove_ptr(), and take_ptr(). |
|
||||||||||||
|
Definition at line 566 of file qgdict.cpp. References cases, QBaseBucket::getData(), QStringBucket::getKey(), QBaseBucket::getNext(), hashKeyString(), numItems, unlink_common(), vec, and vlen. Referenced by remove_string(), and take_string(). |
|
||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a collection/dictionary item to the stream s and returns a reference to the stream.
Definition at line 180 of file qgdict.cpp. |
|
|
Writes the dictionary to the stream s. Definition at line 963 of file qgdict.cpp. References AsciiKey, count(), QBaseBucket::getData(), QBaseBucket::getNext(), i, IntKey, keytype, PtrKey, size(), StringKey, and vec. Referenced by operator<<(). |
|
|
|
|
|
Definition at line 153 of file qgdict.h. Referenced by hashKeyAscii(), hashKeyString(), init(), look_ascii(), look_string(), unlink_ascii(), and unlink_string(). |
|
|
Definition at line 154 of file qgdict.h. Referenced by clear(), init(), look_ascii(), read(), remove_ascii(), resize(), and take_ascii(). |
|
|
Definition at line 155 of file qgdict.h. Referenced by clear(), init(), QGDictIterator::operator=(), QGDictIterator::QGDictIterator(), resize(), unlink_common(), ~QGDict(), and QGDictIterator::~QGDictIterator(). |
|
|
Definition at line 152 of file qgdict.h. Referenced by clear(), init(), operator=(), QGDict(), read(), resize(), and write(). |
|
|
Definition at line 151 of file qgdict.h. Referenced by clear(), init(), look_ascii(), look_int(), look_ptr(), look_string(), resize(), unlink_ascii(), unlink_common(), unlink_int(), unlink_ptr(), and unlink_string(). |
|
|
Definition at line 149 of file qgdict.h. Referenced by clear(), init(), look_ascii(), look_int(), look_ptr(), look_string(), QGDictIterator::operator++(), resize(), statistics(), QGDictIterator::toFirst(), unlink_ascii(), unlink_common(), unlink_int(), unlink_ptr(), unlink_string(), write(), and ~QGDict(). |
|
|
Definition at line 150 of file qgdict.h. Referenced by clear(), init(), look_ascii(), look_int(), look_ptr(), look_string(), resize(), unlink_ascii(), unlink_int(), unlink_ptr(), and unlink_string(). |
1.4.2