Chromium Code Reviews| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 typedef HashTable<ValueType, ValueType, IdentityExtractor, | 52 typedef HashTable<ValueType, ValueType, IdentityExtractor, |
| 53 HashFunctions, ValueTraits, ValueTraits, Allocator> HashTableType; | 53 HashFunctions, ValueTraits, ValueTraits, Allocator> HashTableType; |
| 54 | 54 |
| 55 public: | 55 public: |
| 56 typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> iterator; | 56 typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> iterator; |
| 57 typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> const_iter ator; | 57 typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> const_iter ator; |
| 58 typedef typename HashTableType::AddResult AddResult; | 58 typedef typename HashTableType::AddResult AddResult; |
| 59 | 59 |
| 60 ValueType* table() const { return m_impl.table(); } | |
|
haraken
2016/01/07 08:06:22
What is this change for?
| |
| 61 | |
| 60 void swap(HashSet& ref) | 62 void swap(HashSet& ref) |
| 61 { | 63 { |
| 62 m_impl.swap(ref.m_impl); | 64 m_impl.swap(ref.m_impl); |
| 63 } | 65 } |
| 64 | 66 |
| 65 void swap(typename Allocator::template OtherType<HashSet>::Type other) | 67 void swap(typename Allocator::template OtherType<HashSet>::Type other) |
| 66 { | 68 { |
| 67 HashSet& ref = Allocator::getOther(other); | 69 HashSet& ref = Allocator::getOther(other); |
| 68 m_impl.swap(ref.m_impl); | 70 m_impl.swap(ref.m_impl); |
| 69 } | 71 } |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 286 struct NeedsTracing<HashSet<T, U, V>> { | 288 struct NeedsTracing<HashSet<T, U, V>> { |
| 287 static const bool value = false; | 289 static const bool value = false; |
| 288 }; | 290 }; |
| 289 #endif | 291 #endif |
| 290 | 292 |
| 291 } // namespace WTF | 293 } // namespace WTF |
| 292 | 294 |
| 293 using WTF::HashSet; | 295 using WTF::HashSet; |
| 294 | 296 |
| 295 #endif // WTF_HashSet_h | 297 #endif // WTF_HashSet_h |
| OLD | NEW |