OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void removeFirst(); | 105 void removeFirst(); |
106 void removeLast(); | 106 void removeLast(); |
107 void remove(iterator&); | 107 void remove(iterator&); |
108 void remove(const_iterator&); | 108 void remove(const_iterator&); |
109 | 109 |
110 void clear(); | 110 void clear(); |
111 | 111 |
112 template<typename Predicate> | 112 template<typename Predicate> |
113 iterator findIf(Predicate&); | 113 iterator findIf(Predicate&); |
114 | 114 |
115 typedef int HasInlinedTraceMethodMarker; | |
116 template<typename VisitorDispatcher> void trace(VisitorDispatcher); | 115 template<typename VisitorDispatcher> void trace(VisitorDispatcher); |
117 | 116 |
118 private: | 117 private: |
119 friend class DequeIteratorBase<T, inlineCapacity, Allocator>; | 118 friend class DequeIteratorBase<T, inlineCapacity, Allocator>; |
120 | 119 |
121 typedef VectorBuffer<T, INLINE_CAPACITY, Allocator> Buffer; | 120 typedef VectorBuffer<T, INLINE_CAPACITY, Allocator> Buffer; |
122 typedef VectorTypeOperations<T> TypeOperations; | 121 typedef VectorTypeOperations<T> TypeOperations; |
123 typedef DequeIteratorBase<T, inlineCapacity, Allocator> IteratorBase; | 122 typedef DequeIteratorBase<T, inlineCapacity, Allocator> IteratorBase; |
124 | 123 |
125 void remove(size_t position); | 124 void remove(size_t position); |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 struct NeedsTracing<Deque<T, N>> { | 565 struct NeedsTracing<Deque<T, N>> { |
567 static const bool value = false; | 566 static const bool value = false; |
568 }; | 567 }; |
569 #endif | 568 #endif |
570 | 569 |
571 } // namespace WTF | 570 } // namespace WTF |
572 | 571 |
573 using WTF::Deque; | 572 using WTF::Deque; |
574 | 573 |
575 #endif // WTF_Deque_h | 574 #endif // WTF_Deque_h |
OLD | NEW |