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 15 matching lines...) Expand all Loading... |
26 #ifndef PODIntervalTree_h | 26 #ifndef PODIntervalTree_h |
27 #define PODIntervalTree_h | 27 #define PODIntervalTree_h |
28 | 28 |
29 #include "platform/PODArena.h" | 29 #include "platform/PODArena.h" |
30 #include "platform/PODInterval.h" | 30 #include "platform/PODInterval.h" |
31 #include "platform/PODRedBlackTree.h" | 31 #include "platform/PODRedBlackTree.h" |
32 #include "wtf/Assertions.h" | 32 #include "wtf/Assertions.h" |
33 #include "wtf/Noncopyable.h" | 33 #include "wtf/Noncopyable.h" |
34 #include "wtf/Vector.h" | 34 #include "wtf/Vector.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace blink { |
37 | 37 |
38 #ifndef NDEBUG | 38 #ifndef NDEBUG |
39 template<class T> | 39 template<class T> |
40 struct ValueToString; | 40 struct ValueToString; |
41 #endif | 41 #endif |
42 | 42 |
43 template <class T, class UserData = void*> | 43 template <class T, class UserData = void*> |
44 class PODIntervalSearchAdapter { | 44 class PODIntervalSearchAdapter { |
45 public: | 45 public: |
46 typedef PODInterval<T, UserData> IntervalType; | 46 typedef PODInterval<T, UserData> IntervalType; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 // Support for printing PODIntervals at the PODRedBlackTree level. | 255 // Support for printing PODIntervals at the PODRedBlackTree level. |
256 template<class T, class UserData> | 256 template<class T, class UserData> |
257 struct ValueToString<PODInterval<T, UserData> > { | 257 struct ValueToString<PODInterval<T, UserData> > { |
258 static String string(const PODInterval<T, UserData>& interval) | 258 static String string(const PODInterval<T, UserData>& interval) |
259 { | 259 { |
260 return interval.toString(); | 260 return interval.toString(); |
261 } | 261 } |
262 }; | 262 }; |
263 #endif | 263 #endif |
264 | 264 |
265 } // namespace WebCore | 265 } // namespace blink |
266 | 266 |
267 #endif // PODIntervalTree_h | 267 #endif // PODIntervalTree_h |
OLD | NEW |