#include <qintdict.h>
Public Member Functions | |
QIntDict (int size=17) | |
QIntDict (const QIntDict< type > &d) | |
~QIntDict () | |
QIntDict< type > & | operator= (const QIntDict< type > &d) |
uint | count () const |
uint | size () const |
bool | isEmpty () const |
void | insert (long k, const type *d) |
void | replace (long k, const type *d) |
bool | remove (long k) |
type * | take (long k) |
type * | find (long k) const |
type * | operator[] (long k) const |
void | clear () |
void | resize (uint n) |
void | statistics () const |
Public Member Functions inherited from QGDict | |
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 (QCollection::Item) |
Definition at line 46 of file qintdict.h.
Definition at line 49 of file qintdict.h.
Definition at line 50 of file qintdict.h.
Definition at line 51 of file qintdict.h.
Removes all objects from the collection. The objects will be deleted if auto-delete has been enabled.
Reimplemented from QGDict.
Definition at line 67 of file qintdict.h.
Returns the number of objects in the collection.
Reimplemented from QGDict.
Definition at line 54 of file qintdict.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 80 of file qintdict.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 75 of file qintdict.h.
Definition at line 63 of file qintdict.h.
Definition at line 57 of file qintdict.h.
Definition at line 56 of file qintdict.h.
|
inline |
Definition at line 52 of file qintdict.h.
Definition at line 65 of file qintdict.h.
Definition at line 61 of file qintdict.h.
Definition at line 59 of file qintdict.h.
Definition at line 68 of file qintdict.h.
Definition at line 55 of file qintdict.h.
Definition at line 69 of file qintdict.h.
Definition at line 62 of file qintdict.h.