OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void clear(); | 101 void clear(); |
102 template<typename Collection> | 102 template<typename Collection> |
103 void removeAll(const Collection& toBeRemoved) { WTF::removeAll(*this, to
BeRemoved); } | 103 void removeAll(const Collection& toBeRemoved) { WTF::removeAll(*this, to
BeRemoved); } |
104 | 104 |
105 static bool isValidValue(ValuePeekInType); | 105 static bool isValidValue(ValuePeekInType); |
106 | 106 |
107 ValuePassOutType take(iterator); | 107 ValuePassOutType take(iterator); |
108 ValuePassOutType take(ValuePeekInType); | 108 ValuePassOutType take(ValuePeekInType); |
109 ValuePassOutType takeAny(); | 109 ValuePassOutType takeAny(); |
110 | 110 |
111 typedef int HasInlinedTraceMethodMarker; | |
112 template<typename VisitorDispatcher> | 111 template<typename VisitorDispatcher> |
113 void trace(VisitorDispatcher visitor) { m_impl.trace(visitor); } | 112 void trace(VisitorDispatcher visitor) { m_impl.trace(visitor); } |
114 | 113 |
115 private: | 114 private: |
116 HashTableType m_impl; | 115 HashTableType m_impl; |
117 }; | 116 }; |
118 | 117 |
119 struct IdentityExtractor { | 118 struct IdentityExtractor { |
120 template<typename T> | 119 template<typename T> |
121 static const T& extract(const T& t) { return t; } | 120 static const T& extract(const T& t) { return t; } |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 struct NeedsTracing<HashSet<T, U, V>> { | 278 struct NeedsTracing<HashSet<T, U, V>> { |
280 static const bool value = false; | 279 static const bool value = false; |
281 }; | 280 }; |
282 #endif | 281 #endif |
283 | 282 |
284 } // namespace WTF | 283 } // namespace WTF |
285 | 284 |
286 using WTF::HashSet; | 285 using WTF::HashSet; |
287 | 286 |
288 #endif /* WTF_HashSet_h */ | 287 #endif /* WTF_HashSet_h */ |
OLD | NEW |