30 template<
class IDLListType,
class T>
35 typename IDLListType::iterator iter = this->begin();
40 this->hashedTs_.
insert((*iter).keyword(), &(*iter));
47 template<
class IDLListType,
class T>
52 template<
class IDLListType,
class T>
64 template<
class IDLListType,
class T>
78 template<
class IDLListType,
class T>
90 template<
class IDLListType,
class T>
93 return hashedTs_.
found(keyword);
98 template<
class IDLListType,
class T>
106 if (iter != hashedTs_.
end())
118 template<
class IDLListType,
class T>
123 if (iter != hashedTs_.
end())
135 template<
class IDLListType,
class T>
140 if (iter == hashedTs_.
end())
144 "DictionaryBase<IDLListType, T>::lookup(const word&) const"
145 ) << keyword <<
" is undefined"
154 template<
class IDLListType,
class T>
159 if (iter == hashedTs_.
end())
163 "DictionaryBase<IDLListType, T>::lookup(const word&)"
164 ) << keyword <<
" is undefined"
173 template<
class IDLListType,
class T>
181 typename IDLListType::const_iterator iter = this->begin();
186 keywords[i++] = iter().keyword();
194 template<
class IDLListType,
class T>
198 hashedTs_.insert(keyword, tPtr);
204 template<
class IDLListType,
class T>
208 hashedTs_.insert(keyword, tPtr);
213 template<
class IDLListType,
class T>
218 if (iter != hashedTs_.
end())
220 T* tPtr = IDLListType::remove(iter());
221 hashedTs_.erase(iter);
231 template<
class IDLListType,
class T>
239 template<
class IDLListType,
class T>
245 IDLListType::transfer(dict);
246 hashedTs_.transfer(dict.hashedTs_);
252 template<
class IDLListType,
class T>
261 FatalErrorIn(
"DictionaryBase::operator=(const DictionaryBase&)")
262 <<
"attempted assignment to self"
266 IDLListType::operator=(dict);
267 this->hashedTs_.clear();