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) 2008 David Levin <levin@chromium.org> | 3 * Copyright (C) 2008 David Levin <levin@chromium.org> |
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 * MERCHANTABIL
ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public L
icense for more details. | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABIL
ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public L
icense for more details. |
12 * | 12 * |
13 * You should have received a copy of the GNU Library General Public License | 13 * You should have received a copy of the GNU Library General Public License |
14 * along with this library; see the file COPYING.LIB. If not, write to | 14 * along with this library; see the file COPYING.LIB. If not, write to |
15 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 15 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
16 * Boston, MA 02110-1301, USA. | 16 * Boston, MA 02110-1301, USA. |
17 * | 17 * |
18 */ | 18 */ |
19 | 19 |
20 #ifndef WTF_HashTable_h | 20 #ifndef WTF_HashTable_h |
21 #define WTF_HashTable_h | 21 #define WTF_HashTable_h |
22 | 22 |
23 #include "wtf/Alignment.h" | 23 #include "wtf/Alignment.h" |
24 #include "wtf/Assertions.h" | 24 #include "wtf/Assertions.h" |
25 #include "wtf/ConditionalDestructor.h" | 25 #include "wtf/ConditionalDestructor.h" |
26 #include "wtf/DefaultAllocator.h" | 26 #include "wtf/DefaultAllocator.h" |
27 #include "wtf/HashTraits.h" | 27 #include "wtf/HashTraits.h" |
28 #include "wtf/WTF.h" | |
29 | 28 |
30 #define DUMP_HASHTABLE_STATS 0 | 29 #define DUMP_HASHTABLE_STATS 0 |
31 #define DUMP_HASHTABLE_STATS_PER_TABLE 0 | 30 #define DUMP_HASHTABLE_STATS_PER_TABLE 0 |
32 | 31 |
33 #if DUMP_HASHTABLE_STATS_PER_TABLE | 32 #if DUMP_HASHTABLE_STATS_PER_TABLE |
34 #include "wtf/DataLog.h" | 33 #include "wtf/DataLog.h" |
35 #endif | 34 #endif |
36 | 35 |
37 #if DUMP_HASHTABLE_STATS | 36 #if DUMP_HASHTABLE_STATS |
38 #if DUMP_HASHTABLE_STATS_PER_TABLE | 37 #if DUMP_HASHTABLE_STATS_PER_TABLE |
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 CollectionIterator end(toBeRemoved.end()); | 1448 CollectionIterator end(toBeRemoved.end()); |
1450 for (CollectionIterator it(toBeRemoved.begin()); it != end; ++it) | 1449 for (CollectionIterator it(toBeRemoved.begin()); it != end; ++it) |
1451 collection.remove(*it); | 1450 collection.remove(*it); |
1452 } | 1451 } |
1453 | 1452 |
1454 } // namespace WTF | 1453 } // namespace WTF |
1455 | 1454 |
1456 #include "wtf/HashIterators.h" | 1455 #include "wtf/HashIterators.h" |
1457 | 1456 |
1458 #endif // WTF_HashTable_h | 1457 #endif // WTF_HashTable_h |
OLD | NEW |