49 QAsciiDict(
int size=17,
bool caseSensitive=TRUE,
bool copyKeys=TRUE )
50 :
QGDict(size,AsciiKey,caseSensitive,copyKeys) {}
56 uint size()
const {
return QGDict::size(); }
59 void insert(
const char *k,
const type *d )
60 { QGDict::look_ascii(k,(Item)d,1); }
61 void replace(
const char *k,
const type *d )
62 { QGDict::look_ascii(k,(Item)d,2); }
63 bool remove(
const char *k ) {
return QGDict::remove_ascii(k); }
64 type *take(
const char *k ) {
return (type *)QGDict::take_ascii(k); }
65 type *find(
const char *k )
const 66 {
return (type *)((
QGDict*)
this)->QGDict::look_ascii(k,0,0); }
67 type *operator[](
const char *k )
const 68 {
return (type *)((
QGDict*)
this)->QGDict::look_ascii(k,0,0); }
71 void resize( uint n ) { QGDict::resize(n); }
72 void statistics()
const { QGDict::statistics(); }
77 #if defined(Q_DELETING_VOID_UNDEFINED) 85 if ( del_item )
delete (type *)d;
95 uint count()
const {
return dict->count(); }
96 bool isEmpty()
const {
return dict->count() == 0; }
97 type *toFirst() {
return (type *)QGDictIterator::toFirst(); }
98 operator type *()
const {
return (type *)QGDictIterator::get(); }
99 type *current()
const {
return (type *)QGDictIterator::get(); }
100 const char *currentKey()
const {
return QGDictIterator::getKeyAscii(); }
101 type *operator()() {
return (type *)QGDictIterator::operator()(); }
102 type *operator++() {
return (type *)QGDictIterator::operator++(); }
103 type *operator+=(uint j) {
return (type *)QGDictIterator::operator+=(j);}
107 #endif // QASCIIDICT_H uint count() const
Definition: qasciidict.h:55
uint count() const
Definition: qgdict.h:107
void clear()
Definition: qgdict.cpp:857
void clear()
Definition: qasciidict.h:70
An internal class for implementing QDictIterator and QIntDictIterator.
Definition: qgdict.h:167
The QGDict class is an internal class for implementing QDict template classes.
Definition: qgdict.h:104
Definition: qasciidict.h:46
virtual void deleteItem(Item)
Definition: qcollection.cpp:174
Definition: qasciidict.h:89