15 #include <QtCore/QList>
33 void addEntry(T,
bool replace =
false);
73 while (it != this->end())
87 while (it != rhs.end())
89 addEntry((*it)->clone());
97 if (this->count() == 0)
105 T item = this->last();
114 item = this->first();
118 this->insert(0, entry);
122 QString strKey = entry->string().c_str();
124 unsigned int iLower = 0;
125 unsigned int iUpper = this->count() - 1;
127 while ((iUpper - iLower) != 1)
129 int iPos = (iUpper + iLower) / 2;
131 if (sdKey < *this->at(iPos))
135 else if (sdKey > *this->at(iPos))
139 else if ((sdKey == *this->at(iPos)) && replace)
141 *this->at(iPos) = *entry;
147 this->insert(iLower + 1, entry);
150 template <
typename T>
155 while (iter != this->end())
168 template <
typename T>
173 while (iter != this->end())