Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: Source/wtf/HashSet.h

Issue 1270043002: Remove HasInlinedTraceMethod<T>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/wtf/HashMap.h ('k') | Source/wtf/HashTable.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « Source/wtf/HashMap.h ('k') | Source/wtf/HashTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698