87 return m_owner->compareValues(item1,item2);
116 m_dict =
new QDict<T>(
SDict_primes[m_sizeIndex],caseSensitive);
118 m_dict =
new QDict<T>(
size,caseSensitive);
138 m_dict->insert(key,d);
156 m_dict->insert(key,d);
166 bool remove(
const char *
key)
168 T *item = m_dict->take(
key);
175 T *item = m_dict->take(key);
178 int i = m_list->
find(item);
200 m_dict->insert(key,d);
212 m_dict->insert(key,d);
234 return m_dict->find(key);
238 return m_dict->find(key);
242 return m_dict->find(key);
247 if (item==0)
return -1;
248 return m_list->
find(item);
254 return m_dict->find(key);
260 return m_list->
at(i);
286 return m_list->
count();
290 friend class Iterator;
314 return m_li->toFirst();
322 return m_li->toLast();
328 return m_li->current();
337 return m_li->operator++();
346 return m_li->operator--();
354 friend class IteratorDict;
364 m_di =
new QDictIterator<T>(*dict.
m_dict);
378 return m_di->toFirst();
386 return m_di->toLast();
392 return m_di->current();
398 return m_di->currentKey();
407 return m_di->operator++();
416 return m_di->operator--();
436 return m_owner->compareValues(item1,item2);
557 return m_dict->
find(key);
563 return m_dict->
find(key);
569 return m_list->
at(i);
595 return m_list->
count();
599 friend class Iterator;
623 return m_li->toFirst();
631 return m_li->toLast();
637 return m_li->current();
646 return m_li->operator++();
655 return m_li->operator--();
663 friend class IteratorDict;
687 return m_di->toFirst();
695 return m_di->toLast();
701 return m_di->current();
707 return m_di->currentKey();
716 return m_di->operator++();
725 return m_di->operator--();
T * operator[](int key) const
void prepend(const char *key, const T *d)
void inSort(const char *key, const T *d)
int compareValues(const T *item1, const T *item2) const
virtual int compareValues(const T *item1, const T *item2) const
SDict(int size=17, bool caseSensitive=TRUE)
QCString currentKey() const
void setAutoDelete(bool val)
T * find(const QString &key)
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Iterator(const SDict< T > &dict)
int find(const T *d) const
void append(const char *key, const T *d)
QListIterator< T > * m_li
bool insert(uint i, const T *d)
void setAutoDelete(bool val)
QDictIterator< T > * m_di
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
void insert(long k, const type *d)
QDictIterator< T > * m_di
void inSort(int key, const T *d)
IteratorDict(const SDict< T > &dict)
int compareValues(const T *item1, const T *item2) const
void append(int key, const T *d)
T * find(const QCString &key)
T * take(const char *key)
int findAt(const QCString &key)
const uint SDict_primes[]
void prepend(int key, const T *d)
QListIterator< T > * m_li
T * operator[](const char *key) const
Iterator(const SIntDict< T > &dict)
IteratorDict(const SIntDict< T > &dict)
T * find(const char *key)
void insertAt(int i, const char *key, const T *d)
void setAutoDelete(bool enable)
type * find(long k) const
SIntList(SIntDict< T > *owner)
virtual int compareValues(const T *item1, const T *item2) const