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

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

Issue 18095003: Replace #include <wtf/foo.h> with #include "wtf/foo.h" in Source/wtf. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/HashSet.h ('k') | Source/wtf/HashTraits.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, 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 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_HashTable_h 22 #ifndef WTF_HashTable_h
23 #define WTF_HashTable_h 23 #define WTF_HashTable_h
24 24
25 #include <wtf/Alignment.h> 25 #include "wtf/Alignment.h"
26 #include <wtf/Assertions.h> 26 #include "wtf/Assertions.h"
27 #include <wtf/FastMalloc.h> 27 #include "wtf/FastMalloc.h"
28 #include <wtf/HashTraits.h> 28 #include "wtf/HashTraits.h"
29 #include <string.h> 29 #include <string.h>
30 30
31 #define DUMP_HASHTABLE_STATS 0 31 #define DUMP_HASHTABLE_STATS 0
32 #define DUMP_HASHTABLE_STATS_PER_TABLE 0 32 #define DUMP_HASHTABLE_STATS_PER_TABLE 0
33 33
34 // Enables internal WTF consistency checks that are invoked automatically. Non-W TF callers can call checkTableConsistency() even if internal checks are disabled . 34 // Enables internal WTF consistency checks that are invoked automatically. Non-W TF callers can call checkTableConsistency() even if internal checks are disabled .
35 #define CHECK_HASHTABLE_CONSISTENCY 0 35 #define CHECK_HASHTABLE_CONSISTENCY 0
36 36
37 #ifdef NDEBUG 37 #ifdef NDEBUG
38 #define CHECK_HASHTABLE_ITERATORS 0 38 #define CHECK_HASHTABLE_ITERATORS 0
39 #define CHECK_HASHTABLE_USE_AFTER_DESTRUCTION 0 39 #define CHECK_HASHTABLE_USE_AFTER_DESTRUCTION 0
40 #else 40 #else
41 #define CHECK_HASHTABLE_ITERATORS 1 41 #define CHECK_HASHTABLE_ITERATORS 1
42 #define CHECK_HASHTABLE_USE_AFTER_DESTRUCTION 1 42 #define CHECK_HASHTABLE_USE_AFTER_DESTRUCTION 1
43 #endif 43 #endif
44 44
45 #if CHECK_HASHTABLE_ITERATORS 45 #if CHECK_HASHTABLE_ITERATORS
46 // Required for CHECK_HASHTABLE_ITERATORS. 46 // Required for CHECK_HASHTABLE_ITERATORS.
47 #include <wtf/OwnPtr.h> 47 #include "wtf/OwnPtr.h"
48 #include <wtf/PassOwnPtr.h> 48 #include "wtf/PassOwnPtr.h"
49 #include <wtf/Threading.h> 49 #include "wtf/Threading.h"
50 #endif 50 #endif
51 51
52 #if DUMP_HASHTABLE_STATS_PER_TABLE 52 #if DUMP_HASHTABLE_STATS_PER_TABLE
53 #include <wtf/DataLog.h> 53 #include "wtf/DataLog.h"
54 #endif 54 #endif
55 55
56 namespace WTF { 56 namespace WTF {
57 57
58 #if DUMP_HASHTABLE_STATS 58 #if DUMP_HASHTABLE_STATS
59 59
60 struct HashTableStats { 60 struct HashTableStats {
61 // The following variables are all atomically incremented when modified. 61 // The following variables are all atomically incremented when modified.
62 static int numAccesses; 62 static int numAccesses;
63 static int numRehashes; 63 static int numRehashes;
(...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 } 1408 }
1409 1409
1410 template<typename T, typename U> 1410 template<typename T, typename U>
1411 inline bool operator!=(const HashTableIteratorAdapter<T, U>& a, const HashTa bleConstIteratorAdapter<T, U>& b) 1411 inline bool operator!=(const HashTableIteratorAdapter<T, U>& a, const HashTa bleConstIteratorAdapter<T, U>& b)
1412 { 1412 {
1413 return a.m_impl != b.m_impl; 1413 return a.m_impl != b.m_impl;
1414 } 1414 }
1415 1415
1416 } // namespace WTF 1416 } // namespace WTF
1417 1417
1418 #include <wtf/HashIterators.h> 1418 #include "wtf/HashIterators.h"
1419 1419
1420 #endif // WTF_HashTable_h 1420 #endif // WTF_HashTable_h
OLDNEW
« no previous file with comments | « Source/wtf/HashSet.h ('k') | Source/wtf/HashTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698