summaryrefslogtreecommitdiffstats
path: root/src/sortdict.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2011-08-14 13:56:38 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2011-08-14 13:56:38 (GMT)
commit9be758009e1a4c616377dc33ccf1e55dd8b04d9b (patch)
tree3138a0d18d53a00498b4cad59f934a4e64762cf8 /src/sortdict.h
parent64f0c97c3adaa28edf6f1da3264621a18c1d1adb (diff)
downloadDoxygen-9be758009e1a4c616377dc33ccf1e55dd8b04d9b.zip
Doxygen-9be758009e1a4c616377dc33ccf1e55dd8b04d9b.tar.gz
Doxygen-9be758009e1a4c616377dc33ccf1e55dd8b04d9b.tar.bz2
Release-1.7.5
Diffstat (limited to 'src/sortdict.h')
-rw-r--r--src/sortdict.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sortdict.h b/src/sortdict.h
index 366e1ac..c2afa39 100644
--- a/src/sortdict.h
+++ b/src/sortdict.h
@@ -207,6 +207,18 @@ class SDict
#endif
}
+ void insertAt(int i,const char *key,const T *d)
+ {
+ m_list->insert(i,d);
+ m_dict->insert(key,d);
+#if AUTORESIZE
+ if (m_dict->size()>SDict_primes[m_sizeIndex])
+ {
+ m_dict->resize(SDict_primes[++m_sizeIndex]);
+ }
+#endif
+ }
+
/*! Indicates whether or not the dictionary owns its elements */
void setAutoDelete(bool val)
{
@@ -230,6 +242,12 @@ class SDict
{
return m_dict->find(key);
}
+ int findAt(const QCString &key)
+ {
+ T *item = find(key);
+ if (item==0) return -1;
+ return m_list->find(item);
+ }
/*! Equavalent to find(). */
T *operator[](const char *key) const