#include <qptrdict.h>
Public Member Functions | |
QPtrDict (int size=17) | |
QPtrDict (const QPtrDict< type > &d) | |
~QPtrDict () | |
QPtrDict< type > & | operator= (const QPtrDict< type > &d) |
uint | count () const |
uint | size () const |
bool | isEmpty () const |
void | insert (void *k, const type *d) |
void | replace (void *k, const type *d) |
bool | remove (void *k) |
type * | take (void *k) |
type * | find (void *k) const |
type * | operator[] (void *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 qptrdict.h.
Definition at line 49 of file qptrdict.h.
Definition at line 50 of file qptrdict.h.
Definition at line 51 of file qptrdict.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 qptrdict.h.
Returns the number of objects in the collection.
Reimplemented from QGDict.
Definition at line 54 of file qptrdict.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 qptrdict.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 qptrdict.h.
Definition at line 63 of file qptrdict.h.
Definition at line 57 of file qptrdict.h.
Definition at line 56 of file qptrdict.h.
|
inline |
Definition at line 52 of file qptrdict.h.
Definition at line 65 of file qptrdict.h.
Definition at line 61 of file qptrdict.h.
Definition at line 59 of file qptrdict.h.
Definition at line 68 of file qptrdict.h.
Definition at line 55 of file qptrdict.h.
Definition at line 69 of file qptrdict.h.
Definition at line 62 of file qptrdict.h.