| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com> | 3 * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef WTF_ListHashSet_h | 22 #ifndef SKY_ENGINE_WTF_LISTHASHSET_H_ |
| 23 #define WTF_ListHashSet_h | 23 #define SKY_ENGINE_WTF_LISTHASHSET_H_ |
| 24 | 24 |
| 25 #include "sky/engine/wtf/DefaultAllocator.h" | 25 #include "sky/engine/wtf/DefaultAllocator.h" |
| 26 #include "sky/engine/wtf/HashSet.h" | 26 #include "sky/engine/wtf/HashSet.h" |
| 27 #include "sky/engine/wtf/OwnPtr.h" | 27 #include "sky/engine/wtf/OwnPtr.h" |
| 28 #include "sky/engine/wtf/PassOwnPtr.h" | 28 #include "sky/engine/wtf/PassOwnPtr.h" |
| 29 | 29 |
| 30 namespace WTF { | 30 namespace WTF { |
| 31 | 31 |
| 32 // ListHashSet: Just like HashSet, this class provides a Set | 32 // ListHashSet: Just like HashSet, this class provides a Set |
| 33 // interface - a collection of unique objects with O(1) insertion, | 33 // interface - a collection of unique objects with O(1) insertion, |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 return; | 966 return; |
| 967 | 967 |
| 968 for (Node* node = m_head, *next = m_head->next(); node; node = next, nex
t = node ? node->next() : 0) | 968 for (Node* node = m_head, *next = m_head->next(); node; node = next, nex
t = node ? node->next() : 0) |
| 969 node->destroy(this->allocator()); | 969 node->destroy(this->allocator()); |
| 970 } | 970 } |
| 971 | 971 |
| 972 } // namespace WTF | 972 } // namespace WTF |
| 973 | 973 |
| 974 using WTF::ListHashSet; | 974 using WTF::ListHashSet; |
| 975 | 975 |
| 976 #endif /* WTF_ListHashSet_h */ | 976 #endif // SKY_ENGINE_WTF_LISTHASHSET_H_ |
| OLD | NEW |