| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com> | 4 * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com> |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 private: | 151 private: |
| 152 WTF_MAKE_NONCOPYABLE(LinkedHashSetNode); | 152 WTF_MAKE_NONCOPYABLE(LinkedHashSetNode); |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 template <typename ValueArg, | 155 template <typename ValueArg, |
| 156 typename HashFunctions = typename DefaultHash<ValueArg>::Hash, | 156 typename HashFunctions = typename DefaultHash<ValueArg>::Hash, |
| 157 typename TraitsArg = HashTraits<ValueArg>, | 157 typename TraitsArg = HashTraits<ValueArg>, |
| 158 typename Allocator = PartitionAllocator> | 158 typename Allocator = PartitionAllocator> |
| 159 class LinkedHashSet { | 159 class LinkedHashSet { |
| 160 WTF_USE_ALLOCATOR(LinkedHashSet, Allocator); | 160 USE_ALLOCATOR(LinkedHashSet, Allocator); |
| 161 | 161 |
| 162 private: | 162 private: |
| 163 typedef ValueArg Value; | 163 typedef ValueArg Value; |
| 164 typedef TraitsArg Traits; | 164 typedef TraitsArg Traits; |
| 165 typedef LinkedHashSetNode<Value, Allocator> Node; | 165 typedef LinkedHashSetNode<Value, Allocator> Node; |
| 166 typedef LinkedHashSetNodeBase NodeBase; | 166 typedef LinkedHashSetNodeBase NodeBase; |
| 167 typedef LinkedHashSetTranslator<Value, HashFunctions, Allocator> | 167 typedef LinkedHashSetTranslator<Value, HashFunctions, Allocator> |
| 168 NodeHashFunctions; | 168 NodeHashFunctions; |
| 169 typedef LinkedHashSetTraits<Value, Traits, Allocator> NodeHashTraits; | 169 typedef LinkedHashSetTraits<Value, Traits, Allocator> NodeHashTraits; |
| 170 | 170 |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 swap(static_cast<Base&>(a), static_cast<Base&>(b)); | 868 swap(static_cast<Base&>(a), static_cast<Base&>(b)); |
| 869 swap(a.m_value, b.m_value); | 869 swap(a.m_value, b.m_value); |
| 870 Allocator::leaveGCForbiddenScope(); | 870 Allocator::leaveGCForbiddenScope(); |
| 871 } | 871 } |
| 872 | 872 |
| 873 } // namespace WTF | 873 } // namespace WTF |
| 874 | 874 |
| 875 using WTF::LinkedHashSet; | 875 using WTF::LinkedHashSet; |
| 876 | 876 |
| 877 #endif /* WTF_LinkedHashSet_h */ | 877 #endif /* WTF_LinkedHashSet_h */ |
| OLD | NEW |