45 #define USE_ASCII_STRING 47 #ifdef USE_ASCII_STRING 49 #define QAsciiDict QDict 50 #define QAsciiDictIterator QDictIterator 58 QDict(
int size=17,
bool caseSensitive=
TRUE)
60 QDict(
const QDict<type> &
d ) :
QGDict(d) {}
62 QDict<type> &
operator=(
const QDict<type> &d)
82 {
return (
type *)((
QGDict*)
this)->QGDict::look_string(k,0,0); }
84 {
return (
type *)((
QGDict*)
this)->QGDict::look_string(k,0,0); }
92 virtual int compareValues(
const type *
t1,
const type *t2)
const 97 {
return compareValues((
const type*)i1,(
const type*)i2); }
100 #if defined(Q_DELETING_VOID_UNDEFINED) 101 template<>
inline void QDict<void>::deleteItem( Item )
108 if ( del_item )
delete (
type *)d;
117 uint count()
const {
return dict->count(); }
118 bool isEmpty()
const {
return dict->count() == 0; }
128 #endif // USE_ASCII_STRING
QCollection::Item operator+=(uint)
QCollection::Item get() const
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
QCollection::Item operator()()
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
QGDict & operator=(const QGDict &)
bool remove_string(const QString &key, QCollection::Item item=0)
QGDictIterator(const QGDict &)
An internal class for implementing QDictIterator and QIntDictIterator.
QCollection::Item take_string(const QString &key)
QCollection::Item operator++()
QCollection::Item toFirst()
The QGDict class is an internal class for implementing QDict template classes.
QGDict(uint len, KeyType kt, bool cs, bool ck)
virtual void deleteItem(Item)
QString getKeyString() const
QCollection::Item look_string(const QString &key, QCollection::Item, int)