Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/wtf/HashSet.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 *
19 */
20
21 #ifndef WTF_HashSet_h
22 #define WTF_HashSet_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/HashSet.h:22:9`!
23
24 #include "FastAllocBase.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastAllocBase.h`/
25 #include "HashTable.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/HashTable.h`/
26
27 namespace WTFcxx . . $ `<built-in>:467:9`! {
28
29 template<typename Value, typename HashFunctions, typename Traits> class HashSetcxx . . $ QTWTF/HashSet#;
30 template<typename Value, typename HashFunctions, typename Traits>
31 void deleteAllValuescxx . . $ QTWTF/deleteAllValues(6c794ca5e794d038).(const HashSetcxx . . $ QTWTF/HashSet#<Value, HashFunctions, Traits>&);
32 template<typename Value, typename HashFunctions, typename Traits>
33 void fastDeleteAllValuescxx . . $ QTWTF/fastDeleteAllValues(6c794ca5e794d038).(const HashSetcxx . . $ QTWTF/HashSet#<Value, HashFunctions, Traits>&);
34
35 template<typename T> struct IdentityExtractorcxx . . $ QTWTF/IdentityExtractor#;
36
37 template<typename ValueArg, typename HashArg = typename DefaultHashcxx . . $ QTWTF/DefaultHash#<ValueArg>::Hash,
38 typename TraitsArg = HashTraitscxx . . $ QTWTF/HashTraits#<ValueArg> > class HashSetcxx . . $ QTWTF/HashSet# : public FastAllocBasecxx . . $ QTWTF/FastAllocBase# {
39 private:
40 typedef HashArg HashFunctionscxx . . $ QTWTF/HashSet#HashFunctions#;
41 typedef TraitsArg ValueTraitscxx . . $ QTWTF/HashSet#ValueTraits#;
42
43 public:
44 typedef typename ValueTraitscxx . . $ QTWTF/HashSet#ValueTraits#::TraitType ValueTypecxx . . $ QTWTF/HashSet#ValueType#;
45
46 private:
47 typedef HashTablecxx . . $ QTWTF/HashTable#<ValueTypecxx . . $ QTWTF/HashSet#ValueType#, ValueTypecxx . . $ QTWTF/HashSet#ValueType#, IdentityExtractorcxx . . $ QTWTF/IdentityExtractor#<ValueTypecxx . . $ QTWTF/HashSet#ValueType#>,
48 HashFunctionscxx . . $ QTWTF/HashSet#HashFunctions#, ValueTraitscxx . . $ QTWTF/HashSet#ValueTraits#, ValueTraitscxx . . $ QTWTF/HashSet#ValueTraits#> HashTableTypecxx . . $ QTWTF/HashSet#HashTableType#;
49
50 public:
51 typedef HashTableIteratorAdaptercxx . . $ QTWTF/HashTableIteratorAdapter#<HashTableTypecxx . . $ QTWTF/HashSet#HashTableType#, ValueTypecxx . . $ QTWTF/HashSet#ValueType#> iteratorcxx . . $ QTWTF/HashSet#iterator#;
52 typedef HashTableConstIteratorAdaptercxx . . $ QTWTF/HashTableConstIteratorAdapter#<HashTableTypecxx . . $ QTWTF/HashSet#HashTableType#, ValueTypecxx . . $ QTWTF/HashSet#ValueType#> const_iteratorcxx . . $ QTWTF/HashSet#const_iterator#;
53
54 void swapcxx . . $ QTWTF/HashSet#swap(3fb3afeb7eddfcec).(HashSet&);
55
56 int sizecxx . . $ QTWTF/HashSet#size(455f465bc33b4cdf).() const;
57 int capacitycxx . . $ QTWTF/HashSet#capacity(455f465bc33b4cdf).() const;
58 bool isEmptycxx . . $ QTWTF/HashSet#isEmpty(50ce9a9e25b4a850).() const;
59
60 iteratorcxx . . $ QTWTF/HashSet#iterator# begincxx . . $ QTWTF/HashSet#begin(9ee6da13d4c5b37e).();
61 iteratorcxx . . $ QTWTF/HashSet#iterator# endcxx . . $ QTWTF/HashSet#end(9ee6da13d4c5b37e).();
62 const_iteratorcxx . . $ QTWTF/HashSet#const_iterator# begincxx . . $ QTWTF/HashSet#begin(fbf856a9b1c29db4).() const;
63 const_iteratorcxx . . $ QTWTF/HashSet#const_iterator# endcxx . . $ QTWTF/HashSet#end(fbf856a9b1c29db4).() const;
64
65 iteratorcxx . . $ QTWTF/HashSet#iterator# findcxx . . $ QTWTF/HashSet#find(811dfbb72a929da9).(const ValueTypecxx . . $ QTWTF/HashSet#ValueType#&);
66 const_iteratorcxx . . $ QTWTF/HashSet#const_iterator# findcxx . . $ QTWTF/HashSet#find(9bf47ee2c34f4168).(const ValueTypecxx . . $ QTWTF/HashSet#ValueType#&) const;
67 bool containscxx . . $ QTWTF/HashSet#contains(463cec31d6ee356b).(const ValueTypecxx . . $ QTWTF/HashSet#ValueType#&) const;
68
69 // An alternate version of find() that finds the object by hashing and comparing
70 // with some other type, to avoid the cost of type conversion. HashTranslator
71 // must have the following function members:
72 // static unsigned hash(const T&);
73 // static bool equal(const ValueType&, const T&);
74 template<typename T, typename HashTranslator> iteratorcxx . . $ QTWTF/HashSet#iterator# findcxx . . $ QTWTF/HashSet#find(b920d6bc3b8a4696).(const T&);
75 template<typename T, typename HashTranslator> const_iteratorcxx . . $ QTWTF/HashSet#const_iterator# findcxx . . $ QTWTF/HashSet#find(5f74779c08a92e0d).(const T&) const;
76 template<typename T, typename HashTranslator> bool containscxx . . $ QTWTF/HashSet#contains(52aad8a5ba75b80f).(const T&) const;
77
78 // The return value is a pair of an interator to the new value's location,
79 // and a bool that is true if an new entry was added.
80 paircxx . . $ QTWTF/pair#<iteratorcxx . . $ QTWTF/HashSet#iterator#, bool> addcxx . . $ QTWTF/HashSet#add(ca7c02fb0e702721).(const ValueTypecxx . . $ QTWTF/HashSet#ValueType#&);
81
82 // An alternate version of add() that finds the object by hashing and comparing
83 // with some other type, to avoid the cost of type conversion if the object is already
84 // in the table. HashTranslator must have the following function members:
85 // static unsigned hash(const T&);
86 // static bool equal(const ValueType&, const T&);
87 // static translate(ValueType&, const T&, unsigned hashCode);
88 template<typename T, typename HashTranslator> paircxx . . $ QTWTF/pair#<iteratorcxx . . $ QTWTF/HashSet#iterator#, bool> addcxx . . $ QTWTF/HashSet#add(842f0a30d74e8622).(const T&);
89
90 void removecxx . . $ QTWTF/HashSet#remove(710299c41b51b790).(const ValueTypecxx . . $ QTWTF/HashSet#ValueType#&);
91 void removecxx . . $ QTWTF/HashSet#remove(2f1c368b8805ed1f).(iteratorcxx . . $ QTWTF/HashSet#iterator#);
92 void clearcxx . . $ QTWTF/HashSet#clear(49f6e7a06ebc5aa8).();
93
94 private:
95 friend void deleteAllValuescxx . . $ QTWTF/deleteAllValues(d34bad2251f2d7ce).<>(const HashSet&);
96 friend void fastDeleteAllValuescxx . . $ QTWTF/fastDeleteAllValues(d34bad2251f2d7ce).<>(const HashSet&);
97
98 HashTableTypecxx . . $ QTWTF/HashSet#HashTableType# m_implcxx . . $ QTWTF/HashSet#m_impl.;
99 };
100
101 template<typename T> struct IdentityExtractorcxx . . $ QTWTF/IdentityExtractor# {
102 static const T& extractcxx . . $ QTWTF/IdentityExtractor#extract(975d6b1eaf7f4b97).(const T& t) { return t; }
103 };
104
105 template<typename ValueType, typename ValueTraits, typename T, typename Translator>
106 struct HashSetTranslatorAdaptercxx . . $ QTWTF/HashSetTranslatorAdapter# {
107 static unsigned hashcxx . . $ QTWTF/HashSetTranslatorAdapter#hash(55604f8245c8efb).(const T& key) { return Translator::hash(key); }
108 static bool equalcxx . . $ QTWTF/HashSetTranslatorAdapter#equal(115c009195d3b3dd).(const ValueType& a, const T& b) { return Translator::equal(a, b); }
109 static void translatecxx . . $ QTWTF/HashSetTranslatorAdapter#translate(c9f8ac3b3231c37).(ValueType& location, const T& key, const T&, unsigned hashCode)
110 {
111 Translator::translate(location, key, hashCode);
112 }
113 };
114
115 template<typename T, typename U, typename V>
116 inline void HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::swapcxx . . $ QTWTF/HashSet#swap(3fb3afeb7eddfcec).(HashSet& other)
117 {
118 m_implcxx . . $ QTWTF/HashSet#m_impl..swapcxx . . $ QTWTF/HashTable#swap(4c3dc139c52ec836).(other.m_implcxx . . $ QTWTF/HashSet#m_impl.);
119 }
120
121 template<typename T, typename U, typename V>
122 inline int HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::sizecxx . . $ QTWTF/HashSet#size(455f465bc33b4cdf).() const
123 {
124 return m_implcxx . . $ QTWTF/HashSet#m_impl..sizecxx . . $ QTWTF/HashTable#size(455f465bc33b4cdf).();
125 }
126
127 template<typename T, typename U, typename V>
128 inline int HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::capacitycxx . . $ QTWTF/HashSet#capacity(455f465bc33b4cdf).() const
129 {
130 return m_implcxx . . $ QTWTF/HashSet#m_impl..capacitycxx . . $ QTWTF/HashTable#capacity(455f465bc33b4cdf).();
131 }
132
133 template<typename T, typename U, typename V>
134 inline bool HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::isEmptycxx . . $ QTWTF/HashSet#isEmpty(50ce9a9e25b4a850).() const
135 {
136 return m_implcxx . . $ QTWTF/HashSet#m_impl..isEmptycxx . . $ QTWTF/HashTable#isEmpty(50ce9a9e25b4a850).();
137 }
138
139 template<typename T, typename U, typename V>
140 inline typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::iteratorcxx . . $ QTWTF/HashSet#iterator# HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::begincxx . . $ QTWTF/HashSet#begin(9ee6da13d4c5b37e).()
141 {
142 return m_implcxx . . $ QTWTF/HashSet#m_impl..begincxx . . $ QTWTF/HashTable#begin(6bb497947033b321).();
143 }
144
145 template<typename T, typename U, typename V>
146 inline typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::iteratorcxx . . $ QTWTF/HashSet#iterator# HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::endcxx . . $ QTWTF/HashSet#end(9ee6da13d4c5b37e).()
147 {
148 return m_implcxx . . $ QTWTF/HashSet#m_impl..endcxx . . $ QTWTF/HashTable#end(400fc12dfeddc5c0).();
149 }
150
151 template<typename T, typename U, typename V>
152 inline typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::const_iteratorcxx . . $ QTWTF/HashSet#const_iterator# HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::begincxx . . $ QTWTF/HashSet#begin(fbf856a9b1c29db4).() const
153 {
154 return m_implcxx . . $ QTWTF/HashSet#m_impl..begincxx . . $ QTWTF/HashTable#begin(6bb497947033b321).();
155 }
156
157 template<typename T, typename U, typename V>
158 inline typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::const_iteratorcxx . . $ QTWTF/HashSet#const_iterator# HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::endcxx . . $ QTWTF/HashSet#end(fbf856a9b1c29db4).() const
159 {
160 return m_implcxx . . $ QTWTF/HashSet#m_impl..endcxx . . $ QTWTF/HashTable#end(400fc12dfeddc5c0).();
161 }
162
163 template<typename T, typename U, typename V>
164 inline typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::iteratorcxx . . $ QTWTF/HashSet#iterator# HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::findcxx . . $ QTWTF/HashSet#find(811dfbb72a929da9).(const ValueTypecxx . . $ QTWTF/HashSet#ValueType#& value)
165 {
166 return m_implcxx . . $ QTWTF/HashSet#m_impl..findcxx . . $ QTWTF/HashTable#find(82ffd35d6795a744).(value);
167 }
168
169 template<typename T, typename U, typename V>
170 inline typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::const_iteratorcxx . . $ QTWTF/HashSet#const_iterator# HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::findcxx . . $ QTWTF/HashSet#find(9bf47ee2c34f4168).(const ValueTypecxx . . $ QTWTF/HashSet#ValueType#& value) const
171 {
172 return m_implcxx . . $ QTWTF/HashSet#m_impl..findcxx . . $ QTWTF/HashTable#find(82ffd35d6795a744).(value);
173 }
174
175 template<typename T, typename U, typename V>
176 inline bool HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::containscxx . . $ QTWTF/HashSet#contains(463cec31d6ee356b).(const ValueTypecxx . . $ QTWTF/HashSet#ValueType#& value) const
177 {
178 return m_implcxx . . $ QTWTF/HashSet#m_impl..containscxx . . $ QTWTF/HashTable#contains(8877ebe272b9620d).(value);
179 }
180
181 template<typename Value, typename HashFunctions, typename Traits>
182 template<typename T, typename HashTranslator>
183 typename HashSetcxx . . $ QTWTF/HashSet#<Value, HashFunctions, Traits>::iteratorcxx . . $ QTWTF/HashSet#iterator#
184 inline HashSetcxx . . $ QTWTF/HashSet#<Value, HashFunctions, Traits>::findcxx . . $ QTWTF/HashSet#find(b920d6bc3b8a4696).(const T& value)
185 {
186 typedef HashSetTranslatorAdaptercxx . . $ QTWTF/HashSetTranslatorAdapter#<ValueTypecxx . . $ QTWTF/HashSet#ValueType#, ValueTraitscxx . . $ QTWTF/HashSet#ValueTraits#, T, HashTranslator> Adaptercxx . . $ QTWTF/HashSet#find(b920d6bc3b8a4696).Adapter#;
187 return m_implcxx . . $ QTWTF/HashSet#m_impl..template findcxx . . $ QTWTF/HashTable#find(82ffd35d6795a744).<T, Adaptercxx . . $ QTWTF/HashSet#find(b920d6bc3b8a4696).Adapter#>(value);
188 }
189
190 template<typename Value, typename HashFunctions, typename Traits>
191 template<typename T, typename HashTranslator>
192 typename HashSetcxx . . $ QTWTF/HashSet#<Value, HashFunctions, Traits>::const_iteratorcxx . . $ QTWTF/HashSet#const_iterator#
193 inline HashSetcxx . . $ QTWTF/HashSet#<Value, HashFunctions, Traits>::findcxx . . $ QTWTF/HashSet#find(5f74779c08a92e0d).(const T& value) const
194 {
195 typedef HashSetTranslatorAdaptercxx . . $ QTWTF/HashSetTranslatorAdapter#<ValueTypecxx . . $ QTWTF/HashSet#ValueType#, ValueTraitscxx . . $ QTWTF/HashSet#ValueTraits#, T, HashTranslator> Adaptercxx . . $ QTWTF/HashSet#find(5f74779c08a92e0d).Adapter#;
196 return m_implcxx . . $ QTWTF/HashSet#m_impl..template findcxx . . $ QTWTF/HashTable#find(10c59f90f1b43478).<T, Adaptercxx . . $ QTWTF/HashSet#find(5f74779c08a92e0d).Adapter#>(value);
197 }
198
199 template<typename Value, typename HashFunctions, typename Traits>
200 template<typename T, typename HashTranslator>
201 inline bool HashSetcxx . . $ QTWTF/HashSet#<Value, HashFunctions, Traits>::containscxx . . $ QTWTF/HashSet#contains(52aad8a5ba75b80f).(const T& value) const
202 {
203 typedef HashSetTranslatorAdaptercxx . . $ QTWTF/HashSetTranslatorAdapter#<ValueTypecxx . . $ QTWTF/HashSet#ValueType#, ValueTraitscxx . . $ QTWTF/HashSet#ValueTraits#, T, HashTranslator> Adaptercxx . . $ QTWTF/HashSet#contains(52aad8a5ba75b80f).Adapter#;
204 return m_implcxx . . $ QTWTF/HashSet#m_impl..template containscxx . . $ QTWTF/HashTable#contains(8877ebe272b9620d).<T, Adaptercxx . . $ QTWTF/HashSet#contains(52aad8a5ba75b80f).Adapter#>(value);
205 }
206
207 template<typename T, typename U, typename V>
208 paircxx . . $ QTWTF/pair#<typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::iteratorcxx . . $ QTWTF/HashSet#iterator#, bool> HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::addcxx . . $ QTWTF/HashSet#add(ca7c02fb0e702721).(const ValueTypecxx . . $ QTWTF/HashSet#ValueType#& value)
209 {
210 paircxx . . $ QTWTF/pair#<typename HashTablecxx . . $ QTWTF/HashTable#<T, T, IdentityExtractor<T>, U, V, V>::iterator, bool> p = m_implcxx . . $ QTWTF/HashSet#m_impl..addcxx . . $ QTWTF/HashTable#add(b8ed51a42316103f).(value);
211 typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::iteratorcxx . . $ QTWTF/HashSet#iterator# temp = p.firstcxx . . $ std/pair#first.;
212 paircxx . . $ QTWTF/pair#<typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::iteratorcxx . . $ QTWTF/HashSet#iterator#, bool> p2 = paircxx . . $ QTWTF/pair#<typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::iteratorcxx . . $ QTWTF/HashSet#iterator#, bool>(temp, p.secondcxx . . $ std/pair#second.);
213 // p2.first = p.first;
214 // p2.second = p.second;
215 return p2;
216 }
217
218 template<typename Value, typename HashFunctions, typename Traits>
219 template<typename T, typename HashTranslator>
220 paircxx . . $ QTWTF/pair#<typename HashSetcxx . . $ QTWTF/HashSet#<Value, HashFunctions, Traits>::iteratorcxx . . $ QTWTF/HashSet#iterator#, bool>
221 HashSetcxx . . $ QTWTF/HashSet#<Value, HashFunctions, Traits>::addcxx . . $ QTWTF/HashSet#add(842f0a30d74e8622).(const T& value)
222 {
223 typedef HashSetTranslatorAdaptercxx . . $ QTWTF/HashSetTranslatorAdapter#<ValueTypecxx . . $ QTWTF/HashSet#ValueType#, ValueTraitscxx . . $ QTWTF/HashSet#ValueTraits#, T, HashTranslator> Adaptercxx . . $ QTWTF/HashSet#add(842f0a30d74e8622).Adapter#;
224 paircxx . . $ QTWTF/pair#<typename HashTableTypecxx . . $ QTWTF/HashSet#HashTableType#::iterator, bool> p = m_implcxx . . $ QTWTF/HashSet#m_impl..template addPassingHashCodecxx . . $ QTWTF/HashTable#addPassingHashCode(f69b394842063ec6).<T, T, Adaptercxx . . $ QTWTF/HashSet#add(842f0a30d74e8622).Adapter#>(value, value);
225 return paircxx . . $ QTWTF/pair#<iteratorcxx . . $ QTWTF/HashSet#iterator#, bool>(p.firstcxx . . $ std/pair#first., p.secondcxx . . $ std/pair#second.);
226 }
227
228 template<typename T, typename U, typename V>
229 inline void HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::removecxx . . $ QTWTF/HashSet#remove(2f1c368b8805ed1f).(iteratorcxx . . $ QTWTF/HashSet#iterator# it)
230 {
231 if (it.m_implcxx . . $ QTWTF/HashTableIteratorAdapter#m_impl. ==cxx . . $ QTWTF/`operator==`(80d3fa33a1df3c2c). m_implcxx . . $ QTWTF/HashSet#m_impl..endcxx . . $ QTWTF/HashTable#end(400fc12dfeddc5c0).())
232 return;
233 m_implcxx . . $ QTWTF/HashSet#m_impl..checkTableConsistencycxx . . $ QTWTF/HashTable#checkTableConsistency(49f6e7a06ebc5aa8).();
234 m_implcxx . . $ QTWTF/HashSet#m_impl..removeWithoutEntryConsistencyCheckcxx . . $ QTWTF/HashTable#removeWithoutEntryConsistencyCheck(90fee5ddac1206fd).(it.m_implcxx . . $ QTWTF/HashTableIteratorAdapter#m_impl.);
235 }
236
237 template<typename T, typename U, typename V>
238 inline void HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::removecxx . . $ QTWTF/HashSet#remove(710299c41b51b790).(const ValueTypecxx . . $ QTWTF/HashSet#ValueType#& value)
239 {
240 removecxx . . $ QTWTF/HashSet#remove(2f1c368b8805ed1f).(findcxx . . $ QTWTF/HashSet#find(5f74779c08a92e0d).(value));
241 }
242
243 template<typename T, typename U, typename V>
244 inline void HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::clearcxx . . $ QTWTF/HashSet#clear(49f6e7a06ebc5aa8).()
245 {
246 m_implcxx . . $ QTWTF/HashSet#m_impl..clearcxx . . $ QTWTF/HashTable#clear(49f6e7a06ebc5aa8).();
247 }
248
249 template<typename ValueType, typename HashTableType>
250 void deleteAllValuescxx . . $ QTWTF/deleteAllValues(b32c8f942b92bd92).(HashTableType& collection)
251 {
252 typedef typename HashTableType::const_iterator iteratorcxx . . $ QTWTF/deleteAllValues(b32c8f942b92bd92).iterator#;
253 iteratorcxx . . $ QTWTF/deleteAllValues(b32c8f942b92bd92).iterator# end = collection.end();
254 for (iteratorcxx . . $ QTWTF/deleteAllValues(b32c8f942b92bd92).iterator# it = collection.begin(); it !=cxx . . $ QTWTF/`operator!=`(31369b2754de4004). end; ++it)
255 delete *it;
256 }
257
258 template<typename T, typename U, typename V>
259 inline void deleteAllValuescxx . . $ QTWTF/deleteAllValues(6c794ca5e794d038).(const HashSetcxx . . $ QTWTF/HashSet#<T, U, V>& collection)
260 {
261 deleteAllValuescxx . . $ QTWTF/deleteAllValues(235734144632e3c0).<typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::ValueType>(collection.m_implcxx . . $ QTWTF/HashSet#m_impl.);
262 }
263
264 template<typename ValueType, typename HashTableType>
265 void fastDeleteAllValuescxx . . $ QTWTF/fastDeleteAllValues(b32c8f942b92bd92).(HashTableType& collection)
266 {
267 typedef typename HashTableType::const_iterator iteratorcxx . . $ QTWTF/fastDeleteAllValues(b32c8f942b92bd92).iterator#;
268 iteratorcxx . . $ QTWTF/fastDeleteAllValues(b32c8f942b92bd92).iterator# end = collection.end();
269 for (iteratorcxx . . $ QTWTF/fastDeleteAllValues(b32c8f942b92bd92).iterator# it = collection.begin(); it !=cxx . . $ QTWTF/`operator!=`(a84e0eb909a2e1ac). end; ++it)
270 fastDeletecxx . . $ QTWTF/fastDelete(ebd0a1552f8ce24f).(*it);
271 }
272
273 template<typename T, typename U, typename V>
274 inline void fastDeleteAllValuescxx . . $ QTWTF/fastDeleteAllValues(6c794ca5e794d038).(const HashSetcxx . . $ QTWTF/HashSet#<T, U, V>& collection)
275 {
276 fastDeleteAllValuescxx . . $ QTWTF/fastDeleteAllValues(6c794ca5e794d038).<typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::ValueType>(collection.m_implcxx . . $ QTWTF/HashSet#m_impl.);
277 }
278
279 template<typename T, typename U, typename V, typename W>
280 inline void copyToVectorcxx . . $ QTWTF/copyToVector(fd784bc57a926195).(const HashSetcxx . . $ QTWTF/HashSet#<T, U, V>& collection, W& vector)
281 {
282 typedef typename HashSetcxx . . $ QTWTF/HashSet#<T, U, V>::const_iterator iteratorcxx . . $ QTWTF/copyToVector(fd784bc57a926195).iterator#;
283
284 vector.resize(collection.sizecxx . . $ QTWTF/HashSet#size(455f465bc33b4cdf).());
285
286 iteratorcxx . . $ QTWTF/copyToVector(fd784bc57a926195).iterator# it = collection.begincxx . . $ QTWTF/HashSet#begin(fbf856a9b1c29db4).();
287 iteratorcxx . . $ QTWTF/copyToVector(fd784bc57a926195).iterator# end = collection.endcxx . . $ QTWTF/HashSet#end(fbf856a9b1c29db4).();
288 for (unsigned i = 0; it !=cxx . . $ QTWTF/`operator!=`(a84e0eb909a2e1ac). end; ++it, ++i)
289 vector[i] = *it;
290 }
291
292 } // namespace WTF
293
294 using WTFcxx . . $ `<built-in>:467:9`!::HashSetcxx . . $ HashSet#;
295
296 #endif /* WTF_HashSet_h */