#include <q3asciidict.h>
Inheritance diagram for Q3AsciiDict< type >:


Definition at line 34 of file q3asciidict.h.
Public Member Functions | |
| Q3AsciiDict (int size=17, bool caseSensitive=true, bool copyKeys=true) | |
| Q3AsciiDict (const Q3AsciiDict< type > &d) | |
| ~Q3AsciiDict () | |
| Q3AsciiDict< type > & | operator= (const Q3AsciiDict< 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 |
| template<> | |
| void | deleteItem (Q3PtrCollection::Item) |
Private Member Functions | |
| void | deleteItem (Item d) |
| Q3AsciiDict< type >::Q3AsciiDict | ( | int | size = 17, |
|
| bool | caseSensitive = true, |
|||
| bool | copyKeys = true | |||
| ) | [inline] |
| Q3AsciiDict< type >::Q3AsciiDict | ( | const Q3AsciiDict< type > & | d | ) | [inline] |
| Q3AsciiDict< type >::~Q3AsciiDict | ( | ) | [inline] |
| Q3AsciiDict<type>& Q3AsciiDict< type >::operator= | ( | const Q3AsciiDict< type > & | d | ) | [inline] |
Definition at line 46 of file q3asciidict.h.
Referenced by Q3ObjectDictionary::operator=().
00047 { return (Q3AsciiDict<type>&)Q3GDict::operator=(d); }
| uint Q3AsciiDict< type >::count | ( | ) | const [inline, virtual] |
Returns the number of items in the dictionary.
Reimplemented from Q3GDict.
Definition at line 48 of file q3asciidict.h.
00048 { return Q3GDict::count(); }
| uint Q3AsciiDict< type >::size | ( | ) | const [inline] |
Returns the size of the hash array.
Reimplemented from Q3GDict.
Definition at line 49 of file q3asciidict.h.
00049 { return Q3GDict::size(); }
| bool Q3AsciiDict< type >::isEmpty | ( | ) | const [inline] |
| void Q3AsciiDict< type >::insert | ( | const char * | k, | |
| const type * | d | |||
| ) | [inline] |
| void Q3AsciiDict< type >::replace | ( | const char * | k, | |
| const type * | d | |||
| ) | [inline] |
| bool Q3AsciiDict< type >::remove | ( | const char * | k | ) | [inline] |
| type* Q3AsciiDict< type >::take | ( | const char * | k | ) | [inline] |
| type* Q3AsciiDict< type >::find | ( | const char * | k | ) | const [inline] |
| type* Q3AsciiDict< type >::operator[] | ( | const char * | k | ) | const [inline] |
| void Q3AsciiDict< type >::clear | ( | ) | [inline, virtual] |
Removes all items from the dictionary.
Reimplemented from Q3GDict.
Definition at line 63 of file q3asciidict.h.
00063 { Q3GDict::clear(); }
| void Q3AsciiDict< type >::resize | ( | uint | n | ) | [inline] |
Changes the size of the hashtable to newsize. The contents of the dictionary are preserved, but all iterators on the dictionary become invalid.
Reimplemented from Q3GDict.
Definition at line 64 of file q3asciidict.h.
00064 { Q3GDict::resize(n); }
| void Q3AsciiDict< type >::statistics | ( | ) | const [inline] |
Outputs debug statistics.
Reimplemented from Q3GDict.
Definition at line 65 of file q3asciidict.h.
00065 { Q3GDict::statistics(); }
| void Q3AsciiDict< type >::deleteItem | ( | Item | d | ) | [private, virtual] |
Reimplement this function if you want to be able to delete items.
Deletes an item that is about to be removed from the collection.
This function has to reimplemented in the collection template classes, and should only delete item d if auto-delete has been enabled.
Implements Q3PtrCollection.
| void Q3AsciiDict< type >::deleteItem | ( | Q3PtrCollection::Item | d | ) | [inline] |
1.5.1