#include <qasciidict.h>
Public Member Functions | |
QAsciiDict (int size=17, bool caseSensitive=TRUE, bool copyKeys=TRUE) | |
QAsciiDict (const QAsciiDict< type > &d) | |
~QAsciiDict () | |
QAsciiDict< type > & | operator= (const QAsciiDict< type > &d) |
uint | count () const |
uint | size () const |
bool | isEmpty () const |
void | insert (const char *k, const type *d) |
void | replace (const char *k, const type *d) |
bool | remove (const char *k) |
type * | take (const char *k) |
type * | find (const char *k) const |
type * | operator[] (const char *k) const |
void | clear () |
void | resize (uint n) |
void | statistics () const |
Public Member Functions inherited from QGDict | |
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) |
Private Member Functions | |
void | deleteItem (Item d) |
template<> | |
void | deleteItem (Item) |
Additional Inherited Members | |
Public Types inherited from QCollection | |
typedef void * | Item |
Protected Types inherited from QGDict | |
enum | KeyType { StringKey, AsciiKey, IntKey, PtrKey } |
Protected Member Functions inherited from QGDict | |
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) |
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) |
Protected Attributes inherited from QCollection | |
bool | del_item |
Definition at line 46 of file qasciidict.h.
|
inline |
Definition at line 49 of file qasciidict.h.
|
inline |
Definition at line 51 of file qasciidict.h.
|
inline |
Definition at line 52 of file qasciidict.h.
|
inlinevirtual |
Removes all objects from the collection. The objects will be deleted if auto-delete has been enabled.
Implements QCollection.
Definition at line 70 of file qasciidict.h.
|
inlinevirtual |
Returns the number of objects in the collection.
Implements QCollection.
Definition at line 55 of file qasciidict.h.
|
inlineprivatevirtual |
Virtual function that deletes an item that is about to be removed from the collection.
The default implementation deletes d pointer if and only if auto-delete has been enabled.
This function is always reimplemented in the collection template classes.
Reimplemented from QCollection.
Definition at line 83 of file qasciidict.h.
|
inlineprivatevirtual |
Virtual function that deletes an item that is about to be removed from the collection.
The default implementation deletes d pointer if and only if auto-delete has been enabled.
This function is always reimplemented in the collection template classes.
Reimplemented from QCollection.
Definition at line 78 of file qasciidict.h.
|
inline |
Definition at line 65 of file qasciidict.h.
|
inline |
Definition at line 59 of file qasciidict.h.
|
inline |
Definition at line 57 of file qasciidict.h.
|
inline |
Definition at line 53 of file qasciidict.h.
|
inline |
Definition at line 67 of file qasciidict.h.
|
inline |
Definition at line 63 of file qasciidict.h.
|
inline |
Definition at line 61 of file qasciidict.h.
|
inline |
Definition at line 71 of file qasciidict.h.
|
inline |
Definition at line 56 of file qasciidict.h.
|
inline |
Definition at line 72 of file qasciidict.h.
|
inline |
Definition at line 64 of file qasciidict.h.