OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // - operator= | 55 // - operator= |
56 // | 56 // |
57 // If the UserData type is specified, it must support a copy | 57 // If the UserData type is specified, it must support a copy |
58 // constructor and assignment operator. | 58 // constructor and assignment operator. |
59 // | 59 // |
60 // In debug mode, printing of intervals and the data they contain is | 60 // In debug mode, printing of intervals and the data they contain is |
61 // enabled. This requires the following template specializations to be | 61 // enabled. This requires the following template specializations to be |
62 // available: | 62 // available: |
63 // | 63 // |
64 // template<> struct ValueToString<T> { | 64 // template<> struct ValueToString<T> { |
65 // static String string(const T& t); | 65 // static String toString(const T& t); |
66 // }; | 66 // }; |
67 // template<> struct ValueToString<UserData> { | 67 // template<> struct ValueToString<UserData> { |
68 // static String string(const UserData& t); | 68 // static String toString(const UserData& t); |
69 // }; | 69 // }; |
70 // | 70 // |
71 // Note that this class requires a copy constructor and assignment | 71 // Note that this class requires a copy constructor and assignment |
72 // operator in order to be stored in the red-black tree. | 72 // operator in order to be stored in the red-black tree. |
73 | 73 |
74 #include "wtf/Allocator.h" | 74 #include "wtf/Allocator.h" |
75 | 75 |
76 #ifndef NDEBUG | 76 #ifndef NDEBUG |
77 template<class T> | 77 template<class T> |
78 struct ValueToString; | 78 struct ValueToString; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 T m_low; | 159 T m_low; |
160 T m_high; | 160 T m_high; |
161 GC_PLUGIN_IGNORE("crbug.com/513116") | 161 GC_PLUGIN_IGNORE("crbug.com/513116") |
162 UserData m_data; | 162 UserData m_data; |
163 T m_maxHigh; | 163 T m_maxHigh; |
164 }; | 164 }; |
165 | 165 |
166 } // namespace blink | 166 } // namespace blink |
167 | 167 |
168 #endif // PODInterval_h | 168 #endif // PODInterval_h |
OLD | NEW |